[MGNLUI-6490] Specify default sort direction of datasource Created: 04/Jan/21  Updated: 25/Jan/21  Resolved: 25/Jan/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 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



 Comments   
Comment by Christopher Zimmermann [ 25/Jan/21 ]

Closing as more information is present in ticket this was based on. I've reopend that ticket: https://jira.magnolia-cms.com/browse/MGNLUI-6490

Generated at Mon Feb 12 09:36:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.