From a561d08e4211d60bca5ce9b73cecb4006170fe5b Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 11 Mar 2011 12:10:12 +0000 Subject: [PATCH] lib: Make sorts of projects and account mangers case-insensitive svn path=/trunk/boinc/; revision=23221 --- lib/gui_rpc_client_ops.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/gui_rpc_client_ops.cpp b/lib/gui_rpc_client_ops.cpp index 45316c43ce..8b072ca856 100644 --- a/lib/gui_rpc_client_ops.cpp +++ b/lib/gui_rpc_client_ops.cpp @@ -175,12 +175,20 @@ ALL_PROJECTS_LIST::~ALL_PROJECTS_LIST() { bool compare_project_list_entry(const PROJECT_LIST_ENTRY* a, const PROJECT_LIST_ENTRY* b) { +#ifdef _WIN32 + return _stricmp(a->name.c_str(), b->name.c_str()) < 0; +#else return strcasecmp(a->name.c_str(), b->name.c_str()) < 0; +#endif } bool compare_am_list_entry(const AM_LIST_ENTRY* a, const AM_LIST_ENTRY* b) { +#ifdef _WIN32 + return _stricmp(a->name.c_str(), b->name.c_str()) < 0; +#else return strcasecmp(a->name.c_str(), b->name.c_str()) < 0; +#endif } void ALL_PROJECTS_LIST::shuffle() {