Skip to content

Unexpected behavior on negative page number #757

Closed
@bart-degreed

Description

@bart-degreed

It doesn't seem right that a negative page number reverses the sort order.

I believe a better syntax for reversing the sort order would be: ?sort=- (without any attribute). This can be combined with attributes: ?sort=lastname,-age,-

With that in place, we should change the meaning of a negative page number, to indicate (n) pages back from the last one. This requires to know the number of total pages, so it should fail with an error in case options.IncludeTotalRecordCount is set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions