forked from GNUsocial/gnu-social
[PLUGIN][Directory] Fix opposite sort order
This commit is contained in:
parent
e7940a21ee
commit
9f11d270f4
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user