Parse-SDK-iOS-OSX
Parse-SDK-iOS-OSX copied to clipboard
Order method not working
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?
What version of Parse Server & the iOS SDK are you running?
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.
My team just informed me that we are using Parse Server (4.2.0).
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