Sort the appointments by date and time.