Before this commit, the order of the items in the list returned by
DolphinView::selectedItems() was random. Now the items are sorted like
they are sorted in the view.
BUG: 283409
const KItemListSelectionManager* selectionManager = m_container->controller()->selectionManager();
const QSet<int> selectedIndexes = selectionManager->selectedItems();
+ QList<int> sortedIndexes = selectedIndexes.toList();
+ qSort(sortedIndexes);
+
KFileItemList selectedItems;
QSetIterator<int> it(selectedIndexes);
while (it.hasNext()) {