Merge branch 'feature/FixResultsSort' into develop

This commit is contained in:
JackDandy 2018-09-13 04:46:59 +01:00
commit 74c585a0d2
2 changed files with 3 additions and 2 deletions

View file

@ -23,6 +23,7 @@
[develop changelog]
* Fix sorting results
### 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)
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]:
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]:
sort_results = [sort_az, sort_rel, sort_oldest, sort_newest]
elif 'oldest' == sickbeard.RESULTS_SORTBY[:6]: