Sorting algorithm date format logic! (via URL)