Simplify sorting code.

This commit is contained in:
sledgehammer999 2017-12-21 15:26:28 +02:00
parent 5156399c68
commit 99abc21dab
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
4 changed files with 6 additions and 20 deletions

View file

@ -95,10 +95,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex
return lowerPositionThan(left, right);
const int result = Utils::String::naturalCompare(vL.toString(), vR.toString(), Qt::CaseInsensitive);
if (result != 0)
return (result < 0);
return (left < right);
return (result < 0);
}
case TorrentModel::TR_ADD_DATE: