TokyoTyrantQuery::setOrder()
(PECL tokyo_tyrant >= 0.1.0)
Orders results
说明
public TokyoTyrantQuery::setOrder(string $name,int $type): mixed
Sets the order of a query
参数
- $name
The column name to apply the ordering on.
- $type
The$typecan be one of the following constants:
TokyoTyrant::RDBQO_STRASC
- String ascendingTokyoTyrant::RDBQO_STRDESC
- String descendingTokyoTyrant::RDBQO_NUMASC
- Numberic ascendingTokyoTyrant::RDBQO_NUMDESC
- String descending
返回值
This method returns the current object.