Skip to content

Order method not working #1605

@matej494

Description

@matej494

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions