Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order method not working #1605

Open
matej494 opened this issue Feb 17, 2021 · 4 comments
Open

Order method not working #1605

matej494 opened this issue Feb 17, 2021 · 4 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@matej494
Copy link

matej494 commented Feb 17, 2021

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?

@TomWFox
Copy link
Contributor

TomWFox commented Feb 17, 2021

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

@matej494
Copy link
Author

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
Copy link
Author

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

@stale
Copy link

stale bot commented Jul 21, 2021

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 stale bot added the Stale label Jul 21, 2021
@mtrezza mtrezza removed the Stale label Oct 14, 2021
@mtrezza mtrezza added state:needs-investigation type:bug Impaired feature or lacking behavior that is likely assumed labels Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

3 participants