Skip to content

DateTrashed Sort Clause

The DateTrashed Sort Clause sorts the results of searching in Trash by the date and time when the Content item was sent to trash.

Arguments

  • sortDirection (optional) - Query constant, either Query::SORT_ASC or Query::SORT_DESC.

Example

1
2
$query = new Query();
$query->sortClauses = [new SortClause\Trash\DateTrashed()];