aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 46fc34e16..1e5d64a0f 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -59,6 +59,10 @@ function directory_content(&$a) {
$query .= '&name=' . urlencode($search);
if(strpos($search,'@'))
$query .= '&address=' . urlencode($search);
+
+ $sort_order = ((x($_REQUEST,'order')) ? $_REQUEST['order'] : '');
+ if($sort_order)
+ $query .= '&order=' . urlencode($sort_order);
if($a->pager['page'] != 1)
$query .= '&p=' . $a->pager['page'];