[mod] Gruppen und Mitglieder sortiert ausgeben
This commit is contained in:
parent
aa17938c6e
commit
d712412ac5
2 changed files with 13 additions and 3 deletions
|
@ -18,7 +18,7 @@ namespace _espe.service.group
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
export function list(
|
export async function list(
|
||||||
) : Promise<
|
) : Promise<
|
||||||
Array<
|
Array<
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,12 @@ namespace _espe.service.group
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
return _espe.repository.group.list(null);
|
return lib_plankton.list.sorted(
|
||||||
|
await _espe.repository.group.list(null),
|
||||||
|
{
|
||||||
|
"compare_element": (entry1, entry2) => (entry1.preview.label <= entry2.preview.label)
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -239,7 +239,12 @@ namespace _espe.service.member
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
return _espe.repository.member.list(search_term);
|
return lib_plankton.list.sorted(
|
||||||
|
await _espe.repository.member.list(search_term),
|
||||||
|
{
|
||||||
|
"compare_element": (entry1, entry2) => (entry1.id <= entry2.id)
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue