arrange(_:)
Returns a given array, appropriately sorted and filtered.
Declaration
func arrange(_ objects: [Any]) -> [Any]Return Value
An array containing objects filtered using the receiver’s filter predicate (see filterPredicate) and sorted according to the receiver’s sortDescriptors.
Discussion
Subclasses should override this method to use a different sort mechanism, provide custom object arrangement, or (typically only prior to OS X version 10.4, which provides a filter predicate) filter the objects.