Fix sorting results.

This commit is contained in:
JackDandy 2018-09-13 04:46:35 +01:00
parent fd7587c2d3
commit 000ea7a649
2 changed files with 3 additions and 2 deletions

View file

@ -23,6 +23,7 @@
[develop changelog] [develop changelog]
* Fix sorting results
### 0.17.5 (2018-09-08 13:20:00 UTC) ### 0.17.5 (2018-09-08 13:20:00 UTC)

View file

@ -3227,9 +3227,9 @@ class NewHomeAddShows(Home):
reverse=False, key=lambda x: x[idx_src]), is_last_sort) reverse=False, key=lambda x: x[idx_src]), is_last_sort)
if 'az' == sickbeard.RESULTS_SORTBY[:2]: if 'az' == sickbeard.RESULTS_SORTBY[:2]:
sort_results = [sort_date, sort_rel, sort_za, sort_az] sort_results = [sort_oldest, sort_newest, sort_rel, sort_za, sort_az]
elif 'za' == sickbeard.RESULTS_SORTBY[:2]: elif 'za' == sickbeard.RESULTS_SORTBY[:2]:
sort_results = [sort_date, sort_rel, sort_az, sort_za] sort_results = [sort_oldest, sort_newest, sort_rel, sort_az, sort_za]
elif 'newest' == sickbeard.RESULTS_SORTBY[:6]: elif 'newest' == sickbeard.RESULTS_SORTBY[:6]:
sort_results = [sort_az, sort_rel, sort_oldest, sort_newest] sort_results = [sort_az, sort_rel, sort_oldest, sort_newest]
elif 'oldest' == sickbeard.RESULTS_SORTBY[:6]: elif 'oldest' == sickbeard.RESULTS_SORTBY[:6]: