diff --git a/nel/src/gui/dbgroup_combo_box.cpp b/nel/src/gui/dbgroup_combo_box.cpp index b54d33e8f..9adffab86 100644 --- a/nel/src/gui/dbgroup_combo_box.cpp +++ b/nel/src/gui/dbgroup_combo_box.cpp @@ -46,7 +46,7 @@ namespace NLGUI static inline bool lt_text(const std::pair &s1, const std::pair &s2) { // return toLower(s1.second) < toLower(s2.second); - return -NLMISC::compareCaseInsensitive(s1.second, s2.second); + return NLMISC::compareCaseInsensitive(s1.second, s2.second) < 0; } std::string CDBGroupComboBox::measureMenu; diff --git a/ryzom/client/src/interface_v3/people_list.cpp b/ryzom/client/src/interface_v3/people_list.cpp index e8b42382e..1e2a51440 100644 --- a/ryzom/client/src/interface_v3/people_list.cpp +++ b/ryzom/client/src/interface_v3/people_list.cpp @@ -200,11 +200,11 @@ bool CPeopleList::sortExByContactId(const CPeople& a, const CPeople& b) bool CPeopleList::sortExByName(const CPeople& a, const CPeople& b) { if (a.Group == b.Group) { - return -NLMISC::compareCaseInsensitive(a.getName(), b.getName()); // FIXME: Locale-dependent sort + return NLMISC::compareCaseInsensitive(a.getName(), b.getName()) < 0; // FIXME: Locale-dependent sort } else { - return -NLMISC::compareCaseInsensitive(a.Group, b.Group); // FIXME: Locale-dependent sort + return NLMISC::compareCaseInsensitive(a.Group, b.Group) < 0; // FIXME: Locale-dependent sort } } @@ -215,7 +215,7 @@ bool CPeopleList::sortExByOnline(const CPeople& a, const CPeople& b) // We want order: online/alpha, offworld/alpha, offline/alpha if (a.Online == b.Online) { - return -NLMISC::compareCaseInsensitive(a.getName(), b.getName()); // FIXME: Locale-dependent sort + return NLMISC::compareCaseInsensitive(a.getName(), b.getName()) < 0; // FIXME: Locale-dependent sort } else {