Contents

sortBy

The sort descriptors used to order the results.

Declaration

final var sortBy: [SortDescriptor<Element>] { get set }

Discussion

Setting this property updates the underlying fetchDescriptor‘s sort descriptors and immediately refetches on the calling actor. When sectioning is active, the section’s sort descriptor is automatically re-prepended if not already the first descriptor. A SortDescriptor by persistentModelID is appended automatically if not already present to ensure stable ordering for difference computation.

See Also

Accessing observer properties