Eliminate qsort, use std::sort

This commit is contained in:
Felix Kauselmann 2021-03-12 17:38:36 +01:00
parent 75c2618eff
commit 97377cdcf4
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ void VolumeComicsModel::load(const QString &json)
_data.push_back(l);
}
qSort(_data.begin(), _data.end(), lessThan);
std::sort(_data.begin(), _data.end(), lessThan);
}
/*void VolumeComicsModel::load(const QStringList &jsonList)

View File

@ -52,7 +52,7 @@ void FolderContentControllerV2::serviceContent(const int &library, const qulongl
QList<LibraryItem *> folderComics = DBHelper::getFolderComicsFromLibrary(library, folderId);
folderContent.append(folderComics);
qSort(folderContent.begin(), folderContent.end(), LibraryItemSorter());
std::sort(folderContent.begin(), folderContent.end(), LibraryItemSorter());
folderComics.clear();