Skip to content

Commit 2686752

Browse files
committed
Merge branch 'sort-custom-lists-alphabetically-ios-1396'
2 parents cd5b65f + 80fa41a commit 2686752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/MullvadVPN/View controllers/SelectLocation/DataSource/CustomListsDataSource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CustomListsDataSource: SearchableLocationDataSource {
2323
/// from the complete list of nodes created in ``AllLocationDataSource``.
2424
func reload(allLocationNodes: [LocationNode]) {
2525
let expandedCodes = collectExpandedCodes()
26-
nodes = repository.fetchAll().map { list in
26+
nodes = repository.fetchAll().sorted { $0.name < $1.name }.map { list in
2727
let customListWrapper = CustomListLocationNodeBuilder(customList: list, allLocations: allLocationNodes)
2828
let listNode = customListWrapper.customListLocationNode
2929
listNode.showsChildren = expandedCodes.contains(listNode.code)

0 commit comments

Comments
 (0)