UI: sort audio sources by name locale aware
This commit is contained in:
parent
6dce4662cf
commit
792ceb028e
@ -34,7 +34,7 @@ void InsertQObjectByName(std::vector<QObjectPtr> &controls, QObjectPtr control)
|
||||
{
|
||||
QString name = control->objectName();
|
||||
auto finder = [name](QObjectPtr elem) {
|
||||
return elem->objectName() > name;
|
||||
return name.localeAwareCompare(elem->objectName()) < 0;
|
||||
};
|
||||
auto found_at = std::find_if(controls.begin(), controls.end(), finder);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user