MDL-26931 Order blog entries by the creation date

This commit is contained in:
Ankit Agarwal
2011-03-31 11:50:57 +02:00
committed by David Mudrak
parent dae6b38c51
commit 899d5e2d50
+1 -1
View File
@@ -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;