(PECL mongo >=0.9.0)
Sorts the results by given fields
public MongoCursor MongoCursor::sort ( array $fields )
Parameters:
fields
An array of fields by which to sort. Each element in the array has as key the field name, and as value either 1 for ascending sort, or -1 for descending sort.
Each result is first sorted on the first field in the array, then (if it exists) on