Skip to content

Commit 80fa41a

Browse files
committed
Sort custom lists alphabetically
1 parent cd5b65f commit 80fa41a

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)