<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSArrayController/arrange(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSArrayController(im)arrangeObjects:"
  },
  "title" : "arrange(_:)"
}
-->

# arrange(_:)

Returns a given array, appropriately sorted and filtered.

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

## Return Value

An array containing `objects` filtered using the receiver’s filter predicate (see [`filterPredicate`](/documentation/AppKit/NSArrayController/filterPredicate)) and sorted according to the receiver’s [`sortDescriptors`](/documentation/AppKit/NSArrayController/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)