diff options
-rw-r--r-- | engine/lib/river2.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php index 3471e3fef..3648123a6 100644 --- a/engine/lib/river2.php +++ b/engine/lib/river2.php @@ -192,7 +192,7 @@ $whereclause = implode(' and ', $where);
// Construct main SQL
- $sql = "select id,type,subtype,action_type,access_id,view,subject_guid,object_guid,posted from {$CONFIG->dbprefix}river where {$whereclause} limit {$offset},{$limit}";
+ $sql = "select id,type,subtype,action_type,access_id,view,subject_guid,object_guid,posted from {$CONFIG->dbprefix}river where {$whereclause} order by posted desc limit {$offset},{$limit}";
// Get data
return get_data($sql);
|