Added fallback sorting

This commit is contained in:
Tobias Reich 2015-12-21 16:07:45 +01:00
parent f87701b1c0
commit 6547229a3b

View File

@ -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 # Execute query
# Do not prepare $sorting because it is a true statement # Do not prepare $sorting because it is a true statement
# Preparing (escaping) the sorting would destroy it # 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 # Execute query
# Do not prepare $sorting because it is a true statement # Do not prepare $sorting because it is a true statement
# Preparing (escaping) the sorting would destroy it # Preparing (escaping) the sorting would destroy it