hello friends I have a javascript array and I want to sort it on the date from most recent to old. The sort function isn't working I am not sure what I am doing wrong... Anyone can help me? Many thanks in advance!
[Object, Object, Object, Object, Object]
 0 : Object
 favoriteTimestamp : Object
  date : "2016-09-30 10:45:13.000000"
  timezone : "Europe/Brussels"
  timezone_type : 3
Here is my sort function:
console.log(results);
let sortedResults = results.sort(function(a, b) {
      a.favoriteTimestamp.date - b.favoriteTimestamp.date;
 });
console.log(sortedResults);
Both logs give same output so the sort isn't working :'(
Thanks for any help :)
 
    