diff --git a/public_html/templates/user-list.tpl b/public_html/templates/user-list.tpl
index 09b7e112..6565e848 100644
--- a/public_html/templates/user-list.tpl
+++ b/public_html/templates/user-list.tpl
@@ -1,13 +1,13 @@
-
- Sort A→Z
+ Sort A→Z
-
Sort Z→A
-
- Sort old→new
+ Sort old→new
-
Sort new→old
diff --git a/src/SearchServices/Parsers/AbstractSearchParser.php b/src/SearchServices/Parsers/AbstractSearchParser.php
index a2a5fea9..4ee0846a 100644
--- a/src/SearchServices/Parsers/AbstractSearchParser.php
+++ b/src/SearchServices/Parsers/AbstractSearchParser.php
@@ -70,9 +70,9 @@ abstract class AbstractSearchParser
{
$token = preg_split('/,|\s+/', $token);
$orderToken = $token[0];
- $orderDir = (count($token) === 2 and $token[1] === 'desc')
- ? \Szurubooru\SearchServices\Filters\IFilter::ORDER_DESC
- : \Szurubooru\SearchServices\Filters\IFilter::ORDER_ASC;
+ $orderDir = (count($token) === 2 and $token[1] === 'asc')
+ ? \Szurubooru\SearchServices\Filters\IFilter::ORDER_ASC
+ : \Szurubooru\SearchServices\Filters\IFilter::ORDER_DESC;
$orderColumn = $this->getOrderColumn($orderToken);
if ($orderColumn === null)