diff --git a/src/components/BookmarkList.tsx b/src/components/BookmarkList.tsx index 2caced83..d0f95aae 100644 --- a/src/components/BookmarkList.tsx +++ b/src/components/BookmarkList.tsx @@ -37,9 +37,10 @@ export const BookmarkList: React.FC = ({ loading = false }) => { // Merge and flatten all individual bookmarks from all lists - // They're already sorted by date in the service layer + // Re-sort after flattening to ensure newest first across all lists const allIndividualBookmarks = bookmarks.flatMap(b => b.individualBookmarks || []) .filter(ib => ib.content || ib.kind === 30023 || ib.kind === 39701) + .sort((a, b) => ((b.added_at || 0) - (a.added_at || 0)) || ((b.created_at || 0) - (a.created_at || 0))) if (isCollapsed) { // Check if the selected URL is in bookmarks