A comparison function for appointments.
Used by the PlanningCalendar to sort appointments in a timeline.