Fix peers and seeds sorting in transfer list.

When active peers (or seeds) of two torrents are the same we sort by total peers
(or seeds).
Fix 'preview file' regression. Closes #1285.
Merge pull request #1286 from alderz/fix_peer_sorting

Fix peers and seeds sorting in transfer list.