Javascript validator
Web page editor
↑
->orderBy() -- Add an order by condition
Description
Adds a order by condition. Calling this without any arguments clears the
current order condition.
Note
This function can not be called
statically.
The quote_identifiers configuration option will not affect data sent to orderBy.
Example
Example 39-1. Setting the order by <?php
$person = new DataObjects_Person;
$person->orderBy('name');
$person->orderBy('age, eye');
$person->find();
// or with direction:
$person = new DataObjects_Person;
$person->orderBy('name ASC');
$person->orderBy('age DESC, eye');
$person->find();
?> |
|
→
Javascript validator
Web page editor