mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
FIX Use orderBy() instead of sort()
This commit is contained in:
parent
911a71d6f6
commit
3186e0e129
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user