AM-169: getAppointmentsByConstraints should sort appointments by time slot (earliest first)