From 6547229a3ba3662117dd6d343a3e7ae99df3b50f Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Mon, 21 Dec 2015 16:07:45 +0100 Subject: [PATCH] Added fallback sorting --- php/modules/Settings.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/php/modules/Settings.php b/php/modules/Settings.php index f0f57f4..db3e111 100755 --- a/php/modules/Settings.php +++ b/php/modules/Settings.php @@ -179,6 +179,12 @@ class Settings extends Module { } + $sorting .= ' '; + + # Append fallback sorting + # Necessary to get a consistent sorting when multiple photos have same values + $sorting .= ', id DESC'; + # Execute query # Do not prepare $sorting because it is a true statement # Preparing (escaping) the sorting would destroy it @@ -235,6 +241,12 @@ class Settings extends Module { } + $sorting .= ' '; + + # Append fallback sorting + # Necessary to get a consistent sorting when multiple albums have same values + $sorting .= ', id DESC'; + # Execute query # Do not prepare $sorting because it is a true statement # Preparing (escaping) the sorting would destroy it