diff --git a/NucleicRemote/NucleicRemote/Views/SessionsView.swift b/NucleicRemote/NucleicRemote/Views/SessionsView.swift index e42285a..22fb067 100644 --- a/NucleicRemote/NucleicRemote/Views/SessionsView.swift +++ b/NucleicRemote/NucleicRemote/Views/SessionsView.swift @@ -10,10 +10,7 @@ struct SessionsView: View { private var grouped: [(title: String, rows: [WireSessionSummary])] { let pool = (showArchived ? store.sessions : store.liveSessions) - .sorted { - let a = StatusStyle.sortRank($0), b = StatusStyle.sortRank($1) - return a == b ? $0.updatedAt > $1.updatedAt : a < b - } + .sorted(by: StatusStyle.attentionThenRecency) let needs = pool.filter { $0.status.needsYou($0.disposition) } let running = pool.filter { $0.status == .running || $0.status == .provisioning || $0.status == .idle } let done = pool.filter { !needs.contains($0) && !running.contains($0) }