Add sorting for date.