web: sort groups from groupBy<T>
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d1cde64214
commit
616b1f4a05
|
@ -67,7 +67,7 @@ export function groupBy<T>(objects: T[], callback: (obj: T) => string): Array<[s
|
||||||
const tProviders = m.get(group) || [];
|
const tProviders = m.get(group) || [];
|
||||||
tProviders.push(obj);
|
tProviders.push(obj);
|
||||||
});
|
});
|
||||||
return Array.from(m);
|
return Array.from(m).sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function first<T>(...args: Array<T | undefined | null>): T {
|
export function first<T>(...args: Array<T | undefined | null>): T {
|
||||||
|
|
Reference in New Issue