Skip to content

Commit 08fa280

Browse files
committed
feat: sort collections
1 parent 3b31563 commit 08fa280

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/astro-content-devtools/src/components/panels/CollectionsPanel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export const CollectionsPanel: Component = () => {
1313
const { collections } = useDevtools()
1414
const { collectionName, setCollectionName } = useSelection()
1515

16-
// TODO(HiDeoo) sort
17-
const collectionNames = Object.keys(collections)
16+
const collectionNames = Object.keys(collections).sort((a, b) => a.localeCompare(b))
1817

1918
return (
2019
<Panel name="collections">

0 commit comments

Comments
 (0)