Sorts sub tasks by the given criteria.
public sort ( string $sortby, integer $sortdir, string $altsortby ) | ||
$sortby | string | The field by which to sort (Nag::SORT_PRIORITY, Nag::SORT_NAME Nag::SORT_DUE, Nag::SORT_COMPLETION). |
$sortdir | integer | The direction by which to sort (Nag::SORT_ASCEND, Nag::SORT_DESCEND). |
$altsortby | string | The secondary sort field. |