adds a new sorting rule to collection
$coll->add("name","type");
Parameters:
type - sorting type: ASC or DESC See also:
clears collection (deletes all specified sorting rules)
$coll->clear();
Parameters:
checks if there are some rules in collection for the specified field and returns the related hash.
$index = $coll->index("name");
Parameters:
Returns:
an array of all specified sorting rules
$name = $coll->rules[0]["name"];
$coll->rules[0]["direction"]="DESC";
Properties:
See also:
Back to top