Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Control default sorting of features #1479

@cportele

Description

@cportele

Describe the Feature Request

Currently features are sorted by default according to the sortKey. The behaviour can be changed using the sortby parameter. It should be possible to control the default sort order for each collection.

Describe the Use Case

See above.

Describe Preferred Solution

Support a default value for the sortby parameter. The value can be configured for each collection and takes effect when accessing “collections/{collectionId}/items” and when accessing ‘search’ or “search/{queryId}”.

Example configuration:

    - buildingBlock: SORTING
      included:
      - name
      - date
      default:
      - name
      - "-date"

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions