Add case-sensitive & case-insensitive natural sort helper function

Fix helper function not being thread-safe
Use QBT_USES_QT5 define
This commit is contained in:
Chocobo1
2016-05-04 17:15:58 +08:00
committed by sledgehammer999
parent b7cb53a251
commit 4078fc5e2d
10 changed files with 118 additions and 94 deletions

View File

@@ -112,7 +112,7 @@ bool SearchSortModel::lessThan(const QModelIndex &left, const QModelIndex &right
case ENGINE_URL: {
QString vL = left.data().toString();
QString vR = right.data().toString();
return Utils::String::naturalCompare(vL, vR);
return Utils::String::naturalCompareCaseSensitive(vL, vR);
}
default: