From cbe85af852e1d876146da804e65b30bd5386e22b Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Mon, 29 Jun 2020 20:09:16 +0200 Subject: [PATCH] Sort contact list using system Locale and not unicode. --- linphone-app/src/components/contacts/ContactsListProxyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linphone-app/src/components/contacts/ContactsListProxyModel.cpp b/linphone-app/src/components/contacts/ContactsListProxyModel.cpp index ccb5496ac..4f58bbefc 100644 --- a/linphone-app/src/components/contacts/ContactsListProxyModel.cpp +++ b/linphone-app/src/components/contacts/ContactsListProxyModel.cpp @@ -95,7 +95,7 @@ bool ContactsListProxyModel::lessThan (const QModelIndex &left, const QModelInde // Sort by weight and name. return weightA > weightB || ( weightA == weightB && - contactA->mLinphoneFriend->getName() <= contactB->mLinphoneFriend->getName() + QString::localeAwareCompare(Utils::coreStringToAppString(contactA->mLinphoneFriend->getName()), Utils::coreStringToAppString(contactB->mLinphoneFriend->getName())) <= 0 ); }