From 45320fbcea58b1ee065f652d0840e70592419002 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Wed, 4 Sep 2024 23:04:23 +0200 Subject: [PATCH] more sorting fixes --- endpoints/subscriptions/get.php | 1 + 1 file changed, 1 insertion(+) diff --git a/endpoints/subscriptions/get.php b/endpoints/subscriptions/get.php index e9fe62ab2..487490723 100644 --- a/endpoints/subscriptions/get.php +++ b/endpoints/subscriptions/get.php @@ -82,6 +82,7 @@ $sort = $_COOKIE['sortOrder']; } + $sortOrder = $sort; $allowedSortCriteria = ['name', 'id', 'next_payment', 'price', 'payer_user_id', 'category_id', 'payment_method_id', 'inactive', 'alphanumeric']; $order = ($sort == "price" || $sort == "id") ? "DESC" : "ASC";