summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@mullvad.net>2026-04-22 13:42:40 +0200
committerJon Petersson <jon.petersson@mullvad.net>2026-04-23 10:16:10 +0200
commit80fa41ab064af05d138b1bd3bda71aa63f7bde3f (patch)
tree4e35133ef3b39dac7b3ce000eec7f4e86370842a
parentcd5b65ffdf50f4c9408fbb8db1f2d2140126e64f (diff)
downloadmullvadvpn-80fa41ab064af05d138b1bd3bda71aa63f7bde3f.tar.xz
mullvadvpn-80fa41ab064af05d138b1bd3bda71aa63f7bde3f.zip
Sort custom lists alphabetically
-rw-r--r--ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift2
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)