diff --git a/src/widget/form/groupchatform.cpp b/src/widget/form/groupchatform.cpp index 734117496..58e23b027 100644 --- a/src/widget/form/groupchatform.cpp +++ b/src/widget/form/groupchatform.cpp @@ -218,7 +218,7 @@ void GroupChatForm::updateUserNames() // add the labels in alphabetical order into the layout auto nickLabelList = peerLabels.values(); - qSort(nickLabelList.begin(), nickLabelList.end(), [](const QLabel* a, const QLabel* b) + std::sort(nickLabelList.begin(), nickLabelList.end(), [](const QLabel* a, const QLabel* b) { return a->text().toLower() < b->text().toLower(); });