Sorting objects in Cocoa: Sorting using selector (in ascending order) This is the most common sorting method for sorting objects in Cocoa. It uses a selector that must return an NSComparisonResult (either NSOrderedAscending, NSOrderedSame, or NSOrderedDescending). The most common selector is compare:. MUST be declared in header file, as NSObject doesn’t implement it. All custom [...]



