Say I have a Cat class with this property:
var order: Int?
I have an array of these classes that I need to order by this property:
let sortedCats = cats.sorted(by: { $0.order > $1.order })
I get this error:
"Binary operator '>' cannot be applied to two 'Int?' operands"
What's the proper way to do this?