Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-6490

Specify default sort direction of datasource

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Neutral
    • None
    • 6.2
    • None
    • None

    Description

      Provide a mechanism to configure the default sort direction of a datasource. Or a way to configure it at the usage - such as in an app or a chooser.

      Customers can define sortable properties in the JcrDatasource with `sortByProperties`. Unfortunately, they can only specify the property name and not if the column should be ordered descending. This  would be helpful e.g. for an app maintaining latest news.

       

      Notes:

      Maybe add a sortOrder configuration to BaseDatasourceDefinition which allows for ASC/DESC values.

      https://docs.magnolia-cms.com/product-docs/Apps/App-configuration/Data-source-definition/JCR-data-source.html

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD