diff options
| author | Jon Petersson <jon.petersson@mullvad.net> | 2026-04-23 10:17:44 +0200 |
|---|---|---|
| committer | Jon Petersson <jon.petersson@mullvad.net> | 2026-04-23 10:17:44 +0200 |
| commit | 2686752d7cd3f89a758499a5ce860bae3da2a58c (patch) | |
| tree | 4e35133ef3b39dac7b3ce000eec7f4e86370842a | |
| parent | cd5b65ffdf50f4c9408fbb8db1f2d2140126e64f (diff) | |
| parent | 80fa41ab064af05d138b1bd3bda71aa63f7bde3f (diff) | |
| download | mullvadvpn-2686752d7cd3f89a758499a5ce860bae3da2a58c.tar.xz mullvadvpn-2686752d7cd3f89a758499a5ce860bae3da2a58c.zip | |
Merge branch 'sort-custom-lists-alphabetically-ios-1396'
| -rw-r--r-- | ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift b/ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift index 18f342b5db..1670396dd3 100644 --- a/ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift +++ b/ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift @@ -23,7 +23,7 @@ class CustomListsDataSource: SearchableLocationDataSource { /// from the complete list of nodes created in ``AllLocationDataSource``. func reload(allLocationNodes: [LocationNode]) { let expandedCodes = collectExpandedCodes() - nodes = repository.fetchAll().map { list in + nodes = repository.fetchAll().sorted { $0.name < $1.name }.map { list in let customListWrapper = CustomListLocationNodeBuilder(customList: list, allLocations: allLocationNodes) let listNode = customListWrapper.customListLocationNode listNode.showsChildren = expandedCodes.contains(listNode.code) |
