HaikuDepot: use at least strcasecmp() for sorting.
* With localized/pretty titles, the formerly used strcmp() is not adequate anymore.
This commit is contained in:
@@ -388,7 +388,7 @@ PackageColumn::CompareFields(BField* field1, BField* field2)
|
|||||||
if (stringField1 != NULL && stringField2 != NULL) {
|
if (stringField1 != NULL && stringField2 != NULL) {
|
||||||
// TODO: Locale aware string compare... not too important if
|
// TODO: Locale aware string compare... not too important if
|
||||||
// package names are not translated.
|
// package names are not translated.
|
||||||
return strcmp(stringField1->String(), stringField2->String());
|
return strcasecmp(stringField1->String(), stringField2->String());
|
||||||
}
|
}
|
||||||
|
|
||||||
RatingField* ratingField1 = dynamic_cast<RatingField*>(field1);
|
RatingField* ratingField1 = dynamic_cast<RatingField*>(field1);
|
||||||
|
|||||||
Reference in New Issue
Block a user