sort the list by date