diff options
Diffstat (limited to 'mod/search/search_hooks.php')
-rw-r--r-- | mod/search/search_hooks.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php index e56056701..b66a17467 100644 --- a/mod/search/search_hooks.php +++ b/mod/search/search_hooks.php @@ -28,8 +28,7 @@ function search_objects_hook($hook, $type, $value, $params) { $params['wheres'] = array($where); - //@todo allow sorting by recent time - $params['order_by'] = NULL; + $params['order_by'] = search_get_order_by_sql('oe', $params['sort'], $params['order']); $entities = elgg_get_entities($params); $params['count'] = TRUE; |