HaikuDepot: use at least strcasecmp() for sorting.

* With localized/pretty titles, the formerly used strcmp() is not
  adequate anymore.
This commit is contained in:
Axel Dörfler 2015-05-11 17:37:35 +02:00
parent d0f27e418f
commit c2bc264987

View File

@ -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);