Sort groups by create/update date
This commit is contained in:
parent
e958877600
commit
dc164bd8e2
1 changed files with 2 additions and 2 deletions
|
|
@ -42,8 +42,8 @@ export async function loadGroups() {
|
|||
};
|
||||
})
|
||||
.filter((g) => g.id)
|
||||
// Alphabetical for now; a per-group position tag will drive order later.
|
||||
.sort((a, b) => a.name.localeCompare(b.name));
|
||||
// Oldest first.
|
||||
.sort((a, b) => a.createdAt - b.createdAt);
|
||||
} finally {
|
||||
loaded = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue