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)
|
.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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue