Skip to content

Commit

Permalink
Merge pull request #5123 from h3poteto/iss-4786
Browse files Browse the repository at this point in the history
refs #4786 Sort list name in side menu
  • Loading branch information
h3poteto authored Dec 14, 2024
2 parents c17c0c1 + 371e2f3 commit cd04359
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 cd04359

Please sign in to comment.