Comparator to sort the table rows by date ascending