Skip to content

Descending sort '-_id' is not working [mongodb 2.6.11] #55

@yousaf-harry

Description

@yousaf-harry

I came across a strange issue; sorting on id field with '-' is not working and does not return anything where as without '-' is working fine.

This does not work query_set.order_by('-_id')
where as this is working query_set.order_by('_id')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions