API:getDocumentChildren
From MODx Wiki
Returns the children of the selected document/folder.
array getDocumentChildren($id=-1, $active=1, $deleted='0', $fields='id, pagetitle, description, alias, parent', $where, $sort, $direction, $limit);
http://www.modxcms.com/getdocumentchildren.html
$sort should be a comma-separated list of field names on which to sort
$direction should be ASC or DESC
$limit should be a valid argument to the SQL LIMIT clause.
