---
title: "arrange(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsarraycontroller/arrange(_:)"
---

# arrange(_:)

Returns a given array, appropriately sorted and filtered.

## Declaration

```swift
func arrange(_ objects: [Any]) -> [Any]
```

## Return Value

Return Value An array containing objects filtered using the receiver’s filter predicate (see filterPredicate) and sorted according to the receiver’s sortDescriptors.

## Discussion

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.

## See Also

### Arranging Objects

- [arrangedObjects](appkit/nsarraycontroller/arrangedobjects.md)
- [rearrangeObjects()](appkit/nsarraycontroller/rearrangeobjects().md)
