From 80fa41ab064af05d138b1bd3bda71aa63f7bde3f Mon Sep 17 00:00:00 2001 From: Jon Petersson Date: Wed, 22 Apr 2026 13:42:40 +0200 Subject: Sort custom lists alphabetically --- .../SelectLocation/DataSource/CustomListsDataSource.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3-3-g829e