Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
fix: tiny sort alg adjustment to replicate
Browse files Browse the repository at this point in the history
  old sorting when cardinal is same
  • Loading branch information
johanlahti committed Sep 8, 2023
1 parent 4aa4abb commit d6d4c37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function sortColumnItems(columnItems: IListboxResource[]) {
if (b.alwaysExpanded && !a.alwaysExpanded) {
return 1; // b goes before a
}
return a.cardinal > b.cardinal ? 1 : -1; // lower cardinality goes before higher
return a.cardinal >= b.cardinal ? 1 : -1; // lower cardinality goes before higher
});

return sortedItems;
Expand Down

0 comments on commit d6d4c37

Please sign in to comment.