diff options
Diffstat (limited to 'ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift')
| -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) |
