Sorts the objects within a section by their localized titles.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 10.2+
An array containing the model objects for a section.
The selector of a method implemented by the objects in
arraythat returns the string to use for sorting the objects. The method represented by the selector must take no arguments and return an
NSStringobject. For example, you might specify the selector for a name property of the object.
A new array containing the sorted items from the original
The table-view controller creates the array of objects for a section (
array) as part of iterating through its model objects with calls to the
section(for: method. This method should be called on each local section array.