Chain this method onto a get query to specify that you want to sort a field descending, for example:
$result = $tr->desc("users.first_name")->desc("users.last_name")->getUsers(["id"=>53]);
Parameters
$field | The name of the field you wish to sort, optionally with an object name and period prefixing it, e.g. "users.id" |
---|
Return value
This method returns the object itself, to support chaining it to another method call.