Skip to content

Commit a600d33

Browse files
ENG-1139 - Sort clipboard nodes alphabetically
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent c93a59c commit a600d33

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

apps/roam/src/components/canvas/Clipboard.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -529,12 +529,7 @@ const ClipboardPageSection = ({
529529
};
530530
});
531531

532-
return groups.sort((a, b) => {
533-
if (a.isDuplicate !== b.isDuplicate) {
534-
return a.isDuplicate ? -1 : 1;
535-
}
536-
return a.text.localeCompare(b.text);
537-
});
532+
return groups.sort((a, b) => a.text.localeCompare(b.text));
538533
// eslint-disable-next-line react-hooks/exhaustive-deps
539534
}, [discourseNodes, findShapesByUid, storeVersion]);
540535

0 commit comments

Comments
 (0)