Skip to content

Commit fa46041

Browse files
Ensures pinned and draft launchpad items are date-sorted
1 parent f37037c commit fa46041

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plus/focus/focusProvider.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,9 @@ export function groupAndSortFocusItems(items?: FocusItem[]) {
780780
}
781781
}
782782

783+
// Re-sort pinned and draft groups by updated date
784+
grouped.get('pinned')!.sort((a, b) => b.updatedDate.getTime() - a.updatedDate.getTime());
785+
grouped.get('draft')!.sort((a, b) => b.updatedDate.getTime() - a.updatedDate.getTime());
783786
return grouped;
784787
}
785788

0 commit comments

Comments
 (0)