Skip to content

Instantly share code, notes, and snippets.

@Beepeach
Created August 5, 2021 02:09
let upperBee: String = "BEEPEACH"
let lowerBee: String = "beepeach"
upperBee < lowerBee // true
upperBee.compare(lowerBee, options: [.caseInsensitive]) == .orderedSame // true
upperBee.compare(lowerBee, options: [.caseInsensitive, .forcedOrdering]) == .orderedAscending // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment