Skip to content

Commit

Permalink
HaikuDepot: use at least strcasecmp() for sorting.
Browse files Browse the repository at this point in the history
* With localized/pretty titles, the formerly used strcmp() is not
  adequate anymore.
  • Loading branch information
axeld committed May 11, 2015
1 parent d0f27e4 commit c2bc264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/haikudepot/ui/PackageListView.cpp
Expand Up @@ -388,7 +388,7 @@ PackageColumn::CompareFields(BField* field1, BField* field2)
if (stringField1 != NULL && stringField2 != NULL) {
// TODO: Locale aware string compare... not too important if
// package names are not translated.
return strcmp(stringField1->String(), stringField2->String());
return strcasecmp(stringField1->String(), stringField2->String());
}

RatingField* ratingField1 = dynamic_cast<RatingField*>(field1);
Expand Down

0 comments on commit c2bc264

Please sign in to comment.