From 991b3dcec18cf08075a19d87200c891aed48b543 Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Wed, 21 Sep 2022 21:18:48 -0400 Subject: [PATCH] Update SQL query to order results by id --- templates/content-correspondent.tpl.html | 4 ++-- templates/content-episodes.tpl.html | 4 ++-- templates/content-index.tpl.html | 4 ++-- templates/content-series_episode.tpl.html | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/content-correspondent.tpl.html b/templates/content-correspondent.tpl.html index 2c27697..f63b850 100644 --- a/templates/content-correspondent.tpl.html +++ b/templates/content-correspondent.tpl.html @@ -22,7 +22,7 @@ INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id WHERE hosts.hostid = ? AND eps.date < date(\'now\', \'+1 days\') - ORDER BY date DESC ') + ORDER BY eps.id + 0 DESC ') %--> @@ -51,7 +51,7 @@ INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id WHERE hosts.hostid = ? - ORDER BY date DESC + ORDER BY eps.id + 0 DESC ') %--> diff --git a/templates/content-episodes.tpl.html b/templates/content-episodes.tpl.html index 4b86d69..a1683db 100644 --- a/templates/content-episodes.tpl.html +++ b/templates/content-episodes.tpl.html @@ -20,7 +20,7 @@ INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id WHERE eps.date < date(\'now\', \'+1 days\') - ORDER BY date DESC + ORDER BY eps.id + 0 DESC ') %--> @@ -42,7 +42,7 @@ FROM twat_eps as eps INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id - ORDER BY date DESC + ORDER BY eps.id + 0 DESC ') %--> diff --git a/templates/content-index.tpl.html b/templates/content-index.tpl.html index 26c5e2b..1743d75 100644 --- a/templates/content-index.tpl.html +++ b/templates/content-index.tpl.html @@ -65,7 +65,7 @@ INNER JOIN miniseries ON eps.series = miniseries.id LEFT JOIN comment_tallies ON eps.id = comment_tallies.eps_id WHERE eps.date < date(\'now\', \'+1 days\') - ORDER BY date DESC + ORDER BY eps.id + 0 DESC LIMIT 10 ') %--> @@ -106,7 +106,7 @@ INNER JOIN hosts ON eps.hostid = hosts.hostid INNER JOIN miniseries ON eps.series = miniseries.id WHERE eps.date < date(\'now\', \'+1 days\') - ORDER BY date DESC + ORDER BY eps.id + 0 DESC LIMIT 30 OFFSET 10 ') %--> diff --git a/templates/content-series_episode.tpl.html b/templates/content-series_episode.tpl.html index 33d6a57..e74fe50 100644 --- a/templates/content-series_episode.tpl.html +++ b/templates/content-series_episode.tpl.html @@ -38,7 +38,7 @@ INNER JOIN hosts ON eps.hostid = hosts.hostid WHERE series = ? - ORDER BY date DESC + ORDER BY eps.id + 0 DESC ') %-->