Changed comparator to sort by date