Skip to content
Permalink
Browse files

Sort any group beginning with all_ alphabetically

  • Loading branch information
andrew-codechimp committed Jan 5, 2020
1 parent 3509321 commit 1497a305b833ce417c3cfd3934c3943158536334
Showing with 1 addition and 1 deletion.
  1. +1 −1 HA Menu/MenuItemController.swift
@@ -178,7 +178,7 @@ final class MenuItemController: NSObject, NSMenuDelegate {
}

// If a default group then sort, otherwise reverse
if (groupId == "all_switches" || groupId == "all_lights") {
if (groupId.starts(with: "all_")) {
entities = entities.sorted(by: {$0.friendlyName > $1.friendlyName})
}
else {

0 comments on commit 1497a30

Please sign in to comment.
You can’t perform that action at this time.