fix loader

This commit is contained in:
Peter Maquiran
2024-05-31 12:49:49 +01:00
parent 4fad0e306f
commit c982708972
12 changed files with 170 additions and 137 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export class SortService {
if(!Array.isArray(array)) {
array = []
}
return array.sort( (a,b)=> {
return (new Date(this.ObjectService.deepFind(a, path)) < new Date(this.ObjectService.deepFind(b, path))) ? -1 : ((new Date(this.ObjectService.deepFind(a, path)) > new Date(this.ObjectService.deepFind(b, path))) ? 1 : 0);