diff --git a/src/gui/transferlistsortmodel.cpp b/src/gui/transferlistsortmodel.cpp index 2058ce91f..2a48bd843 100644 --- a/src/gui/transferlistsortmodel.cpp +++ b/src/gui/transferlistsortmodel.cpp @@ -131,7 +131,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex const bool seedingR = (prioR < 0); bool activeR = TorrentFilter::ActiveTorrent.match(model->torrentHandle(model->index(right.row()))); - bool activeL = TorrentFilter::ActiveTorrent.match(model->torrentHandle(model->index(right.row()))); + bool activeL = TorrentFilter::ActiveTorrent.match(model->torrentHandle(model->index(left.row()))); // Sorting rules prioritized. // 1. Active torrents at the top