Sort groups by create/update date

This commit is contained in:
dtonon 2026-06-23 17:47:06 +02:00
parent e958877600
commit dc164bd8e2

View file

@ -42,8 +42,8 @@ export async function loadGroups() {
}; };
}) })
.filter((g) => g.id) .filter((g) => g.id)
// Alphabetical for now; a per-group position tag will drive order later. // Oldest first.
.sort((a, b) => a.name.localeCompare(b.name)); .sort((a, b) => a.createdAt - b.createdAt);
} finally { } finally {
loaded = true; loaded = true;
} }