aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggEntity.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes/ElggEntity.php')
-rw-r--r--engine/classes/ElggEntity.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php
index 1154fd89a..7bed1af7c 100644
--- a/engine/classes/ElggEntity.php
+++ b/engine/classes/ElggEntity.php
@@ -533,8 +533,8 @@ abstract class ElggEntity extends ElggData implements
'offset' => $offset,
);
- if ($order == 'desc') {
- $options['order_by'] = 'n_table.time_created desc';
+ if ($order != 'asc') {
+ $options['reverse_order_by'] = true;
}
return elgg_get_annotations($options);