TrackRecordPro API Documentation TrackRecordPro

asc()

Summary

Method Name

asc

Minimum Supported API Version3.0

asc

$result = asc($field)

Details

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

$fieldThe 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.