Skip to content

Commit 28623cf

Browse files
authored
fix: Fixing the sorting function used in the list of regions (#22)
1 parent 662b0a5 commit 28623cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/Authenticator/Utilities/RegionUtils.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ class RegionUtils {
6262
}
6363
}
6464

65-
return regions.sorted(by: { $0.name < $1.name })
65+
return regions.sorted(by: {
66+
$0.name.compare($1.name, locale: locale) == .orderedAscending
67+
})
6668
}()
6769

6870
var currentCallingCode: String {

0 commit comments

Comments
 (0)