We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df97774 commit 44b773aCopy full SHA for 44b773a
packages/app/src/pages/layout.tsx
@@ -123,15 +123,9 @@ export default function Layout(props: ParentProps) {
123
const bUpdated = b.time.updated ?? b.time.created
124
const aRecent = aUpdated > oneMinuteAgo
125
const bRecent = bUpdated > oneMinuteAgo
126
-
127
- // If both are recent (within last minute), sort by ID to prevent jumping
128
if (aRecent && bRecent) return a.id.localeCompare(b.id)
129
130
- // Recent sessions come before non-recent
131
if (aRecent && !bRecent) return -1
132
if (!aRecent && bRecent) return 1
133
134
- // Neither is recent, sort by update time descending
135
return bUpdated - aUpdated
136
}
137
0 commit comments