We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd5b65f commit 80fa41aCopy full SHA for 80fa41a
1 file changed
ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift
@@ -23,7 +23,7 @@ class CustomListsDataSource: SearchableLocationDataSource {
23
/// from the complete list of nodes created in ``AllLocationDataSource``.
24
func reload(allLocationNodes: [LocationNode]) {
25
let expandedCodes = collectExpandedCodes()
26
- nodes = repository.fetchAll().map { list in
+ nodes = repository.fetchAll().sorted { $0.name < $1.name }.map { list in
27
let customListWrapper = CustomListLocationNodeBuilder(customList: list, allLocations: allLocationNodes)
28
let listNode = customListWrapper.customListLocationNode
29
listNode.showsChildren = expandedCodes.contains(listNode.code)
0 commit comments