diff --git a/NucleicRemote/NucleicRemote/Views/AdaptiveRootView.swift b/NucleicRemote/NucleicRemote/Views/AdaptiveRootView.swift index 574c482..9c4a02b 100644 --- a/NucleicRemote/NucleicRemote/Views/AdaptiveRootView.swift +++ b/NucleicRemote/NucleicRemote/Views/AdaptiveRootView.swift @@ -140,10 +140,7 @@ private struct SplitSidebar: View { /// Live sessions grouped under their project (dashboard order), with anything whose project /// isn't in the dashboard collected into a trailing "Other" group. Attention-first sort. private var projectGroups: [(name: String, rows: [WireSessionSummary])] { - let live = store.liveSessions.sorted { - let a = StatusStyle.sortRank($0), b = StatusStyle.sortRank($1) - return a == b ? $0.updatedAt > $1.updatedAt : a < b - } + let live = store.liveSessions.sorted(by: StatusStyle.attentionThenRecency) var groups: [(name: String, rows: [WireSessionSummary])] = [] var placed = Set() for project in store.dashboard.projects {