diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-05 13:11:50 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-05 13:11:50 +0100 |
commit | f0d22c8635ac8ed28d9015cf68be3fad308486a6 (patch) | |
tree | 9d929c02ba537b8b428228fe9dcc648da20658c5 | |
parent | a7f4a5688d4e2e0e4de98c5922db00b186929169 (diff) |
Sort rooms alphanumerical case insensitive
-rw-r--r-- | src/plugins/Matrix.cpp | 2 |
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 } |