[MGNLUI-2157] Treeview: the sorting should be configurable Created: 25/Sep/13  Updated: 09/Mar/21  Resolved: 09/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.1
Fix Version/s: 5.2.x

Type: Improvement Priority: Neutral
Reporter: Espen Jervidalo Assignee: Unassigned
Resolution: Obsolete 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)

 Description   

Currently when having different nodetypes displayed in the tree, the sorting just compares the name of the nodes, so when dealing with e.g. folders it doesn't look like it used to in 4.5.
making it configurable by allowing to define a custom Comparator seems to be pretty straight forward as we have the definition available:
info.magnolia.ui.workbench.tree.HierarchicalJcrContainer.ItemNameComparator


Generated at Mon Feb 12 08:53:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.