aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-04-18 02:16:12 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-04-18 02:16:12 +0900
commita54109c57bdbdd7ad51c69a847c0ed3428df717b (patch)
tree55fb112f7ec6f013e145af65947a7b637554e3e0
parent859355cf660080ba826bb759fd44c3360ea825f6 (diff)
downloadlibquotient-a54109c57bdbdd7ad51c69a847c0ed3428df717b.tar.gz
libquotient-a54109c57bdbdd7ad51c69a847c0ed3428df717b.zip
Use localeAwareCompare() to sort room members
Because it's a recommended by Qt method to sort end-user-facing lists.
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}