Sort list

Run Settings
LanguageSwift
Language Version
Run Command
/// Sort the list by time let sortedList: [Appointment] = appointments.sorted { (a1, a2) -> Bool in let a1Time = convertToTimeOrDateString(fromDateTime: a1.startDate!, convertTo: .time) let a2Time = convertToTimeOrDateString(fromDateTime: a2.startDate!, convertTo: .time) if a1Time > a2Time { return false } return true }
Editor Settings
Theme
Key bindings
Full width
Lines