From 9f11d270f4c932ffc17881bf08837769e8d66a98 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 1 Jan 2022 21:24:24 +0000 Subject: [PATCH] [PLUGIN][Directory] Fix opposite sort order --- plugins/Directory/Controller/Directory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Directory/Controller/Directory.php b/plugins/Directory/Controller/Directory.php index 2018048897..8cc09bacc7 100644 --- a/plugins/Directory/Controller/Directory.php +++ b/plugins/Directory/Controller/Directory.php @@ -56,10 +56,10 @@ class Directory extends FeedController $order_by_op = mb_substr($order_by_qs, -1); if (\in_array($order_by_op, ['^', '<'])) { $order_by_field = mb_substr($order_by_qs, 0, -1); - $order_by_op = 'ASC'; + $order_by_op = 'DESC'; } elseif (\in_array($order_by_op, ['v', '>'])) { $order_by_field = mb_substr($order_by_qs, 0, -1); - $order_by_op = 'DESC'; + $order_by_op = 'ASC'; } else { $order_by_field = $order_by_qs; $order_by_op = 'ASC';