Skip to content

Commit

Permalink
refs #4786 Sort list name in side menu
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Dec 14, 2024
1 parent c17c0c1 commit 371e2f3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion renderer/components/layouts/timelines.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ export default function Layout({ children }: LayoutProps) {
setClient(c)
const f = async () => {
const res = await c.getLists()
setLists(res.data)
setLists(
res.data.sort((a, b) => {
if (a.title > b.title) {
return 1
} else {
return -1
}
})
)
}
f()
const g = async () => {
Expand Down

0 comments on commit 371e2f3

Please sign in to comment.