Skip to content
Browse files

MDL-26931 Order blog entries by the creation date

  • Loading branch information...
1 parent 408612d commit f9112bda35d4a583a3e293675189f1a170b3c937 @ankitagarwal ankitagarwal committed with mudrd8mz Mar 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/locallib.php
View
2 blog/locallib.php
@@ -718,7 +718,7 @@ public function get_entries($start=0, $limit=10) {
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;

0 comments on commit f9112bd

Please sign in to comment.
Something went wrong with that request. Please try again.