this is my json:
and i want to sort this json by date and time. i write below code but it does not work.
this.newsArray.sort((a, b) =>
          new Date(b.time).getTime() - new Date(a.time).getTime());
newsArray contain 4 items as you can see in picture.
how can i fix this problem ?

 
     
    