diff --git a/code/PhotoGalleryHolder.php b/code/PhotoGalleryHolder.php index 0d4a88b..e4e667e 100644 --- a/code/PhotoGalleryHolder.php +++ b/code/PhotoGalleryHolder.php @@ -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; }