Commit e9107e05 authored by Laurent Montel's avatar Laurent Montel 😁

port to std::sort

parent 3f6c86e1
......@@ -1536,11 +1536,11 @@ void TreeView::sortItemChildren(const QList<QTreeWidgetItem *>::iterator &begin,
{
// sort by name
if (sortType == SortByName) {
qSort(begin, end, TreeItem::itemNameLessThan);
std::sort(begin, end, TreeItem::itemNameLessThan);
}
// sort by description
else if (sortType == SortByDescription) {
qSort(begin, end, TreeItem::itemDescriptionLessThan);
std::sort(begin, end, TreeItem::itemDescriptionLessThan);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment