Chain this method onto a get query to specify that you want to sort a field ascending, for example:
$result = $tr->asc("users.first_name")->asc("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.