From 1dfadc8303ef0cf15b72e8533ebd51b4c081eda2 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 16 Jun 2022 13:01:22 +0200 Subject: [PATCH] Sort wishes by URL --- src/classes/wishlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/wishlist.php b/src/classes/wishlist.php index eda6732a..09f1082d 100644 --- a/src/classes/wishlist.php +++ b/src/classes/wishlist.php @@ -60,7 +60,7 @@ class Wishlist $FROM = isset($sql['FROM']) ? $sql['FROM'] : Wish::FROM; $LEFT_JOIN = isset($sql['LEFT_JOIN']) ? $sql['LEFT_JOIN'] : Wish::LEFT_JOIN; $WHERE = isset($sql['WHERE']) ? $sql['WHERE'] : '`wishlist` = ' . $this->id; - $ORDER_BY = isset($sql['ORDER_BY']) ? $sql['ORDER_BY'] : '`priority` DESC, `title` ASC, `url` ASC'; + $ORDER_BY = isset($sql['ORDER_BY']) ? $sql['ORDER_BY'] : '`priority` DESC, `url` ASC, `title` ASC'; $WHERE .= ' AND (`status` != "' . Wish::STATUS_FULFILLED . '" OR `status` IS NULL)';