[GtkUI] Fix ETA sorting to match WebUI

The sort for Ascending was putting longest eta first but seems more
intuitive that the smallest time to wait should be first. The WebUI
in previous commit swapped this behaviour so updating GtkUI.
This commit is contained in:
Calum Lind 2021-12-22 22:37:04 +00:00
parent 3b11613cc7
commit ff309ea4c5
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
1 changed files with 4 additions and 4 deletions

View File

@ -77,13 +77,13 @@ def eta_column_sort(model, iter1, iter2, data):
if v1 == v2:
return 0
if v1 == 0:
return 1
return -1
if v2 == 0:
return -1
if v1 > v2:
return 1
if v2 > v1:
if v1 > v2:
return -1
if v2 > v1:
return 1
def seed_peer_column_sort(model, iter1, iter2, data):