From 899d5e2d50bfddec8012390df263909b36f89605 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Thu, 31 Mar 2011 11:50:57 +0200 Subject: [PATCH] MDL-26931 Order blog entries by the creation date --- blog/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/locallib.php b/blog/locallib.php index 52ff8c324b3..1cc4b0c71f5 100644 --- a/blog/locallib.php +++ b/blog/locallib.php @@ -718,7 +718,7 @@ class blog_listing { global $DB; if (empty($this->entries)) { - if ($sqlarray = $this->get_entry_fetch_sql()) { + if ($sqlarray = $this->get_entry_fetch_sql(false, 'created DESC')) { $this->entries = $DB->get_records_sql($sqlarray['sql'], $sqlarray['params'], $start, $limit); } else { return false;