From 000ea7a6495e039c061e60cdab16c334a9e829d9 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Thu, 13 Sep 2018 04:46:35 +0100 Subject: [PATCH] Fix sorting results. --- CHANGES.md | 1 + sickbeard/webserve.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 5f86ecb1..49e54135 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -23,6 +23,7 @@ [develop changelog] +* Fix sorting results ### 0.17.5 (2018-09-08 13:20:00 UTC) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index a839c598..209d847e 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -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]: