OrderBy
public struct OrderBy<O> : OrderByClause, FetchClause, QueryClause, DeleteClause, Hashable where O : DynamicObject
extension OrderBy: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
The OrderBy
clause specifies the sort order for results for a fetch or a query.
-
Combines two
OrderBy
sort descriptors togetherDeclaration
Swift
public static func + (left: OrderBy, right: OrderBy) -> OrderBy
-
Combines two
OrderBy
sort descriptors together and stores the result to the left operandDeclaration
Swift
public static func += (left: inout OrderBy, right: OrderBy)
-
Initializes a
OrderBy
clause with an empty list of sort descriptorsDeclaration
Swift
public init()
-
Initializes a
OrderBy
clause with a single sort descriptorDeclaration
Swift
public init(_ sortDescriptor: NSSortDescriptor)
Parameters
sortDescriptor
a
NSSortDescriptor
-
Initializes a
OrderBy
clause with a list of sort descriptorsDeclaration
Swift
public init(_ sortDescriptors: [NSSortDescriptor])
Parameters
sortDescriptors
a series of
NSSortDescriptor
s
-
Declaration
Swift
public typealias ObjectType = O
-
Declaration
Swift
public let sortDescriptors: [NSSortDescriptor]
-
Declaration
Swift
public static func == (lhs: OrderBy, rhs: OrderBy) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public var debugDescription: String { get }