lets say we have a custom class named imageFile and this class contains two properties.
class imageFile { var fileName = String() var fileID = Int(
var students = ["Kofi", "Abena", "Peter", "Kweku", "Akosua"] students.sort(by: >) print(students)
Prints : "["Peter", "Kweku", "Kofi", "Akosua", "Abena"]"
"["Peter", "Kweku", "Kofi", "Akosua", "Abena"]"