Sort wishes by URL

This commit is contained in:
grandeljay 2022-06-16 13:01:22 +02:00
parent 9ea397df24
commit 1dfadc8303

View file

@ -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)';