diff --git a/renderer/components/layouts/timelines.tsx b/renderer/components/layouts/timelines.tsx index 0d402f2d..3d405da4 100644 --- a/renderer/components/layouts/timelines.tsx +++ b/renderer/components/layouts/timelines.tsx @@ -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 () => {