From 24a511ec591f3972da9bb744d22c19a34e160cb9 Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Fri, 30 Aug 2024 21:40:48 +0200 Subject: [PATCH] [ui] FilterComboBox: better ordering --- meshroom/ui/qml/Controls/FilterComboBox.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meshroom/ui/qml/Controls/FilterComboBox.qml b/meshroom/ui/qml/Controls/FilterComboBox.qml index 4e672c8476..348f538fb9 100644 --- a/meshroom/ui/qml/Controls/FilterComboBox.qml +++ b/meshroom/ui/qml/Controls/FilterComboBox.qml @@ -39,6 +39,10 @@ ComboBox { return -1 if (!nameA.startsWith(filterText) && nameB.startsWith(filterText)) return 1 + if (nameB > nameA) + return -1 + if (nameA > nameB) + return 1 return 0 }) } else {