Skip to content

Commit

Permalink
Default Sort to Created
Browse files Browse the repository at this point in the history
  • Loading branch information
purplespider committed Jun 2, 2015
1 parent 6e15933 commit 13e192c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/PhotoGalleryHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function init() {
}

function Galleries() {
$list = new PaginatedList(PhotoGalleryPage::get()->filter(array("ParentID" => $this->ID)), $this->request);
$list = new PaginatedList(PhotoGalleryPage::get()->filter(array("ParentID" => $this->ID))->sort("Created DESC"), $this->request);
$list->setPageLength(10);
return $list;
}
Expand Down

0 comments on commit 13e192c

Please sign in to comment.