mirror of https://github.com/BOINC/boinc.git
lib: Make sorts of projects and account mangers case-insensitive
svn path=/trunk/boinc/; revision=23221
This commit is contained in:
parent
a67dfe5d65
commit
a561d08e42
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue