Skip to content

Enumeration

SortOrder

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
The orderings that you can perform sorts with.
@frozen enum SortOrder

Topics

Enumeration Cases

  • case forward
    The ordering that places the first item before the second when comparing two items using an ascending order.
  • case reverse
    The ordering that places the first item after the second when comparing two items using an ascending order.

Initializers

Instance Methods

Relationships

Conforms To

  • Swift.BitwiseCopyable
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype