Skip to content

ContentTypeName Sort Clause

The ContentTypeName Sort Clause sorts the results of searching in Trash by the name of the content item's content type.

Arguments

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

Example

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