|
|
|
|
@ -554,23 +554,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// return arrayToSort.sort((a: any, b: any) =>
|
|
|
|
|
// new Date(b.date).getTime() - new Date(a.date).getTime()
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
sortArrayOfAll(arrayOfAll){
|
|
|
|
|
let date1;
|
|
|
|
|
let date2;
|
|
|
|
|
for(let i=0; i< arrayOfAll.length; i++){
|
|
|
|
|
// for(const filter of arrayOfAll[i]){
|
|
|
|
|
console.log(arrayOfAll);
|
|
|
|
|
arrayOfAll.sort((a,b)=>(this.common.getDateTimeISOFromString(a.ModifiedDate), this.common.getDateTimeISOFromString(b.ModifiedDate))?1:-1);
|
|
|
|
|
console.log(arrayOfAll);
|
|
|
|
|
// console.log(this.common.getDateTimeISOFromString(filter.ModifiedDate));
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Details() {
|
|
|
|
|
this.workListService.getITGDetails('', '', this.isPostNoLoad)
|
|
|
|
|
.subscribe((result: any) => {
|
|
|
|
|
|