Inherits from NSObject
Declared in RLMArray.h

Overview

An RLMSortDescriptor stores a property name and a sort order for use with sortedResultsUsingDescriptors:. It is similar to NSSortDescriptor, but supports only the subset of functionality which can be efficiently run by the query engine. RLMSortDescriptor instances are immutable.

Properties

ascending

Whether this descriptor sorts in ascending or descending order.

@property (nonatomic, readonly) BOOL ascending

Declared In

RLMArray.h

property

The name of the property which this sort descriptor orders results by.

@property (nonatomic, readonly) NSString *property

Declared In

RLMArray.h

Class Methods

sortDescriptorWithProperty:ascending:

Returns a new sort descriptor for the given property name and order.

+ (instancetype)sortDescriptorWithProperty:(NSString *)propertyName ascending:(BOOL)ascending

Declared In

RLMArray.h

Instance Methods

reversedSortDescriptor

Returns a copy of the receiver with the sort order reversed.

- (instancetype)reversedSortDescriptor

Declared In

RLMArray.h