From 5eaec8ebb50d8e47e496ac30d8b24af34e66b75a 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 {