Skip to content

Commit

Permalink
[fix] Ordering countries by localized names
Browse files Browse the repository at this point in the history
  • Loading branch information
remy-shopopop committed Feb 27, 2020
1 parent 544786e commit 0983b3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CountryPickerView.podspec
Original file line number Diff line number Diff line change
@@ -1,7 1,7 @@
Pod::Spec.new do |spec|

spec.name = "CountryPickerView"
spec.version = "3.0.9"
spec.version = "3.0.10"
spec.summary = "A simple, customizable view for selecting countries in iOS apps."
spec.homepage = "https://github.com/kizitonwose/CountryPickerView"
spec.license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion CountryPickerView/CountryPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 53,7 @@ extension CountryPickerViewController {
}
groupedData.forEach{ key, value in
groupedData[key] = value.sorted(by: { (lhs, rhs) -> Bool in
return lhs.name < rhs.name
return lhs.localizedName() ?? lhs.name < rhs.localizedName() ?? rhs.name
})
}

Expand Down
4 changes: 2 additions & 2 deletions CountryPickerViewDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
PODS:
- CountryPickerView (3.0.8)
- CountryPickerView (3.0.10)

DEPENDENCIES:
- CountryPickerView (from `../`)
Expand All @@ -9,7 9,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
CountryPickerView: d36c6fa3422671b1ba7c4d217e7367ca64de44e2
CountryPickerView: 05725e8cc7cb5ac347b5153144354f8220cce51d

PODFILE CHECKSUM: 649829ad9a32abd953e33364dc48a4a40a615047

Expand Down

0 comments on commit 0983b3b

Please sign in to comment.