From 2079bd5a6e70c8b9882e41bf3983099623bb044b Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Wed, 5 Oct 2022 13:26:12 +0200 Subject: [PATCH] Sort "other printers" list CURA-9687 --- cura/Machines/Models/MachineListModel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cura/Machines/Models/MachineListModel.py b/cura/Machines/Models/MachineListModel.py index 4db1082863..df9ca7483f 100644 --- a/cura/Machines/Models/MachineListModel.py +++ b/cura/Machines/Models/MachineListModel.py @@ -86,6 +86,7 @@ class MachineListModel(ListModel): machines_manager = CuraApplication.getInstance().getMachineManager() other_machine_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine") + other_machine_stacks.sort(key = lambda machine: machine.getName().upper()) abstract_machine_stacks = CuraContainerRegistry.getInstance().findContainerStacks(is_abstract_machine = "True") abstract_machine_stacks.sort(key = lambda machine: machine.getName(), reverse = True)