void $DB_DataObject->orderBy ([string $order])
void $DB_DataObject->orderBy
Adds a order by condition. Calling this without any arguments clears the current order condition.
string $order - Order
This function can not be called statically
Example 20-1. Setting the order by
$person = new DataObjects_Person; $person->orderBy('name'); $person->orderBy('age, eye'); $person->find();
Example 20-2. Resulting SQL
SELECT * FROM person ORDER BY name, age, eye