Stabilize screen order via sorting
Screen order obtained via QGuiApplication::screens()
is not stable, it may change on reboot. The "Open on screen" setting of Yakuake uses the order of screens returned by that function to determine the screen to open Yakuake on, which means it may switch screens when rebooting. I have also reported this as a bug upstream: https://bugreports.qt.io/browse/QTBUG-128236
This change circumvents the issue by sorting the list of screens by their name
attribute.
Edited by Jannick Kremer