Case insensitive sort
This commit is contained in:
parent
22434a2627
commit
9f2cdbe490
@ -29,7 +29,11 @@ export class SortingService<T extends IListable> {
|
||||
return order === SortingOrders.asc ? result : result.reverse();
|
||||
}
|
||||
|
||||
return orderBy<T>(values, [column], [order]);
|
||||
return orderBy<T>(
|
||||
values,
|
||||
[(entity: T) => (typeof entity[column] === 'string' ? (entity[column] as unknown as string).toLowerCase() : entity[column])],
|
||||
[order],
|
||||
);
|
||||
}
|
||||
|
||||
setSortingOption(value: SortingOption<T>): void {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user