Skip to content

Case

SortOrder.forward

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 before the second when comparing two items using an ascending order.
case forward

Discussion

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