diff --git a/code/Reports/RecentlyEditedReport.php b/code/Reports/RecentlyEditedReport.php index 17aeac2a..8522834c 100644 --- a/code/Reports/RecentlyEditedReport.php +++ b/code/Reports/RecentlyEditedReport.php @@ -31,7 +31,7 @@ class RecentlyEditedReport extends Report $threshold = strtotime('-14 days', DBDatetime::now()->getTimestamp()); return SiteTree::get() ->filter('LastEdited:GreaterThan', date("Y-m-d H:i:s", $threshold)) - ->sort("\"$tableName\".\"LastEdited\" DESC"); + ->orderBy("\"$tableName\".\"LastEdited\" DESC"); } public function columns()