Skip to content

Case

SortOrder.reverse

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
The ordering that places the first item after the second when comparing two items using an ascending order.
case reverse

Discussion

The ordering places the first item after the second when a ComparisonResult of two items is ComparisonResult.orderedAscending.