Reverse sorting, newer machines on top.

Same brand or name, but with a higher number should generally be first, so reverse sorting.

CURA-9769
This commit is contained in:
Remco Burema 2022-10-20 10:24:01 +02:00
parent f8b0305bae
commit b4405d886b

View file

@ -252,7 +252,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
# List could end up empty!
Logger.log("e", "Found a broken configuration in the synced list!")
all_configurations.remove(None)
new_configurations = sorted(all_configurations, key = lambda config: config.printerType or "")
new_configurations = sorted(all_configurations, key = lambda config: config.printerType or "", reverse = True)
if new_configurations != self._unique_configurations:
self._unique_configurations = new_configurations
self.uniqueConfigurationsChanged.emit()