From a54109c57bdbdd7ad51c69a847c0ed3428df717b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 18 Apr 2017 02:16:12 +0900 Subject: Use localeAwareCompare() to sort room members Because it's a recommended by Qt method to sort end-user-facing lists. --- room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/room.cpp b/room.cpp index ae341e1b..632e79df 100644 --- a/room.cpp +++ b/room.cpp @@ -844,6 +844,6 @@ bool MemberSorter::operator()(User *u1, User *u2) const n1.remove(0, 1); if (n2[0] == '@') n2.remove(0, 1); - return n1 < n2; + return n1.localeAwareCompare(n2) < 0; } -- cgit v1.2.3