I have a class called "Man". One of a variable of Man is the "height" of the person.
I have for example 10 objects of "Man" with different values for the height parameter and now I want to order these objects by the height. How can I achieve this?
var allMan:[Man] = [Man]()
for currentMan in allMan {
//Something to do
}