Skip to content

Commit 44b773a

Browse files
committed
chore: cleanup
1 parent df97774 commit 44b773a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/app/src/pages/layout.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,9 @@ export default function Layout(props: ParentProps) {
123123
const bUpdated = b.time.updated ?? b.time.created
124124
const aRecent = aUpdated > oneMinuteAgo
125125
const bRecent = bUpdated > oneMinuteAgo
126-
127-
// If both are recent (within last minute), sort by ID to prevent jumping
128126
if (aRecent && bRecent) return a.id.localeCompare(b.id)
129-
130-
// Recent sessions come before non-recent
131127
if (aRecent && !bRecent) return -1
132128
if (!aRecent && bRecent) return 1
133-
134-
// Neither is recent, sort by update time descending
135129
return bUpdated - aUpdated
136130
}
137131

0 commit comments

Comments
 (0)