Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Mongolid
Cursor
Cursor
sort
Mongolid\Cursor\Cursor::sort PHP Method
Cursor Class Documentation
Datei anzeigen
Open project: leroy-merlin-br/mongolid
sort()
public
method
Sorts the results by given fields.
public
sort
(
array
$fields
) :
Cursor
$fields
array
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.
return
Cursor
Returns this cursor.
public function sort(array $fields) { $this->params[1]['sort'] = $fields; return $this; }
Cursor
__construct
all
count
current
disableTimeout
first
fresh
getAssembler
getConverter
getCursor
key
limit
next
rewind
serialize
skip
sort
toArray
unserialize
valid