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 26-1. Setting the order by
<?php $person = new DataObjects_Person; $person->orderBy('name'); $person->orderBy('age, eye'); $person->find(); ?>
Example 26-2. Resulting SQL
SELECT * FROM person ORDER BY name, age, eye