aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-05 13:11:50 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-05 13:11:50 +0100
commitf0d22c8635ac8ed28d9015cf68be3fad308486a6 (patch)
tree9d929c02ba537b8b428228fe9dcc648da20658c5 /src
parenta7f4a5688d4e2e0e4de98c5922db00b186929169 (diff)
Sort rooms alphanumerical case insensitive
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Matrix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 8abffa7..410e4c6 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -333,7 +333,7 @@ namespace QuickMedia {
});
#else
std::sort(room_body_items.begin(), room_body_items.end(), [](const std::shared_ptr<BodyItem> &body_item1, const std::shared_ptr<BodyItem> &body_item2) {
- return body_item1->get_title() > body_item2->get_title();
+ return strcasecmp(body_item1->get_title().c_str(), body_item2->get_title().c_str()) < 0;
});
#endif
}