Parse-SDK-iOS-OSX icon indicating copy to clipboard operation
Parse-SDK-iOS-OSX copied to clipboard

Order method not working

Open matej494 opened this issue 4 years ago • 4 comments

We used to successfully order elements in the query by the number filed of nested object. We just realised it does not work anymore. Here is the example of the code, it is not the exact code, just the example:

let user: User //User that we're looking for
let query = PFQuery(className: "Club")
query.whereKey("user", equalTo: user)
query.includeKey("user")
query.order(byDescending: "user.someNumber") // We want to order by someNumber which is actually field of the user object
query.findObjectsInBackground...

Are we doing something wrong? Is this intended for some reason, or just a bug?

matej494 avatar Feb 17 '21 09:02 matej494

What version of Parse Server & the iOS SDK are you running?

TomWFox avatar Feb 17 '21 15:02 TomWFox

We are using Parse (1.19.0). As for Parse Server I'll need to check with my team. I will get back to you on that.

matej494 avatar Feb 17 '21 16:02 matej494

My team just informed me that we are using Parse Server (4.2.0).

matej494 avatar Feb 17 '21 16:02 matej494

This issue has been automatically marked as stale because it has not had recent activity. If you believe it should stay open, please let us know! As always, we encourage contributions, check out the Contributing Guide

stale[bot] avatar Jul 21 '21 01:07 stale[bot]