Hi. I agree with jordan when he says in
https://trac.transmissionbt.com/ticket/3770#comment:4, "I agree with synchronizing the clients' sort modes...". Mac, qt and gtk clients should sort the same. I will go into deeper reasoning if necessary, but it sounds like the sorting algorithm for the Mac client described 11 months ago by livings124 in
https://trac.transmissionbt.com/ticket/3080#comment:5 is borked, no offense intended! And if the Mac client indeed uses it -- I will try to test it soon -- then it is borked relative to the pre-11446 transmission-gtk behaviour. Here is a one-line change that makes the transmission-gtk client sort beautifully again; this would please both myself and porg from ticket 3090; we are both saying that progress toward "done" is more important to most users(*) than progress toward "complete" given that "complete" may not be a "goal" at all for partial downloads to progress toward. He was not at all disagreeing with livings124's definition of "ratio". livings124 states a definition of progress differing from pre-11446 transmission-gtk's, saying progress = %complete, not %done, but does not really defend it, merely disagreeing with what he saw as porg's definition of "ratio". A re-reading of 3090 should show that despite using the word "ratio", porg was talking about sort key 1, "progress", when he said "selected" should trump "complete (total)". I agree; he goes on to say that the rest of the sort keys, including "ratio", are fine as they are.
I can't seem to attach a patch here, but I hesitate to post a ticket reversing previous invalid and fixed enhancement treatments yet. This is versus svn grab as
of 11833:
diff -r latest/tr-core.c fixed/tr-core.c
437c437
< if( !ret ) ret = compareDouble( sa->percentComplete, sb->percentComplete );
---
> if( !ret ) ret = compareDouble( sa->percentDone, sb->percentDone );
This looks *so* much better.
(*) The only complaint with this behaviour was from a transmission-gtk user in
https://trac.transmissionbt.com/ticket/3770, asking for the sorting behaviour described for the Mac client 11 months ago to have complete seeding torrents progress-sort above all non-complete seeding torrents. As a default sort, this is far less elegant than the previous behaviour in practice. There are numerous enhancements which would enable his desired behaviour as an option:
- a preference "Progress sort by torrent size" (rather than by "done" size)
- a new "View" menu item, "Sort by completion"
- new filters -- but this is cumbersome -- "Seeding completed" and "Seeding partial"