Sort categories by case-insensitive name

This commit is contained in:
Davide De Rosa 2019-04-25 23:59:33 +02:00
parent 94a717befa
commit 1c868bf460
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class ProviderPoolViewController: UIViewController {
weak var delegate: ProviderPoolViewControllerDelegate?
func setInfrastructure(_ infrastructure: Infrastructure, currentPoolId: String?) {
categories = infrastructure.categories.sorted { $0.name < $1.name }
categories = infrastructure.categories.sorted { $0.name.lowercased() < $1.name.lowercased() }
for c in categories {
sortedGroupsByCategory[c.name] = c.groups.values.sorted()