2.6 SortByDate Function