This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

Sort alpha

Nathan Herald (Mar 18, 2026, 8:22 PM +0100) 2e2a5072 4bf25b21

+4 -3
+4 -3
src/tui/screen-list.ts
··· 51 51 52 52 function sortSessions(sessions: SessionInfo[]): SessionInfo[] { 53 53 return [...sessions].sort((a, b) => { 54 - const aTime = a.metadata?.createdAt ?? ""; 55 - const bTime = b.metadata?.createdAt ?? ""; 56 - return aTime.localeCompare(bTime); 54 + const aRunning = a.status === "running" ? 0 : 1; 55 + const bRunning = b.status === "running" ? 0 : 1; 56 + if (aRunning !== bRunning) return aRunning - bRunning; 57 + return a.name.localeCompare(b.name); 57 58 }); 58 59 } 59 60