Skip to content

UserLogin Sort Clause

The UserLogin Sort Clause sorts the results of searching in Trash by the login of the Content item's creator.

Arguments

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

Example

1
2
$query = new Query();
$query->sortClauses = [new SortClause\Trash\UserLogin()];
Read the Docs