Keep sidebar ordering with portability branch
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
d73c8df895
commit
c3f4e18a5e
1 changed files with 0 additions and 4 deletions
|
|
@ -28,10 +28,6 @@ function sortByHierarchy(agents: Agent[]): Agent[] {
|
|||
list.push(a);
|
||||
childrenOf.set(parent, list);
|
||||
}
|
||||
// Sort children at each level alphabetically by name
|
||||
for (const [, list] of childrenOf) {
|
||||
list.sort((a, b) => a.name.localeCompare(b.name));
|
||||
}
|
||||
const sorted: Agent[] = [];
|
||||
const queue = childrenOf.get(null) ?? [];
|
||||
while (queue.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue