---
title: didChangeArrangementCriteria()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsarraycontroller/didchangearrangementcriteria()
---

# didChangeArrangementCriteria()

Invoked when any criteria for arranging objects change.

## Declaration

```swift
func didChangeArrangementCriteria()
```

## Discussion

Discussion This method is invoked by the controller itself when any criteria for arranging objects change (sort descriptors or filter predicates) to reset the key paths for automatic rearranging. Special Considerations If you implement a subclass of NSArrayController and override rearrangeObjects() to use additional arrangement criteria, you should invoke this method if those criteria change.

## See Also

### Related Documentation

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

### Automatic Content Rearranging

- [automaticallyRearrangesObjects](appkit/nsarraycontroller/automaticallyrearrangesobjects.md)
- [automaticRearrangementKeyPaths](appkit/nsarraycontroller/automaticrearrangementkeypaths.md)
