Skip to content

Commit

Permalink
feat(web): collection list sort (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Sep 11, 2023
1 parent 0f91ab6 commit 6b463f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/pages/app/database/CollectionListPanel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export default function CollectionListPanel() {
<SectionList>
{res?.data
.filter((db: any) => db.name.indexOf(search) >= 0)
.sort((a: any, b: any) => {
return a.name.localeCompare(b.name);
})
.map((db: any) => {
return (
<SectionList.Item
Expand Down

0 comments on commit 6b463f0

Please sign in to comment.