Skip to content

Commit

Permalink
MDL-26931 Order blog entries by the creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal authored and mudrd8mz committed Mar 31, 2011
1 parent dae6b38 commit 899d5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 899d5e2

Please sign in to comment.