Here's how you can use ORDER BY
with Lithium Relationships ...
$table1_table2 = Table1::find('all', array(
'conditions' => array('Table1.foo' => 'bar'),
'with' => array('Table2'),
'order' => array('Table2.title'),
'limit' => 3
));
Note the 'Table2.title'
which wll result in something like ...
SELECT ... ORDER BY Table2.title;
The ASC
is implied in this case, but you can pass ASC or DESC as well.