TrackRecordPro API Documentation TrackRecordPro

desc()

Summary

Method Name

desc

Minimum Supported API Version3.0

desc

$result = desc($field)

Details

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

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