Skip to content

Commit

Permalink
feat(nodes): sort node categories by name
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed May 23, 2024
1 parent bc5b24d commit d8a4ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ui/lib/views/nodes/nodes_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class _NodesViewState extends State<NodesView> with WidgetsBindingObserver {
position: globalPosition,
child: PopupMenu<String>(
categories: categories.entries
.sorted((lhs, rhs) => lhs.key.value.compareTo(rhs.key.value))
.sorted((lhs, rhs) => lhs.key.name.compareTo(rhs.key.name))
.map((e) => PopupCategory(
label: CATEGORY_NAMES[e.key]!,
items: e.value
Expand Down

0 comments on commit d8a4ade

Please sign in to comment.