|
MongoCursor::sortSorts the results by given fields Description
public MongoCursor MongoCursor::sort
( array
$fields
)Parameters
Return ValuesReturns the same cursor that this method was called on. Errors/ExceptionsThrows MongoCursorException if this cursor has started iterating. ExamplesExample #1 MongoCursor::sort example
<?php |