fuel/orm — pull request #245 by rob-mccann (2013-03-29 14:26:28+00:00)
Title: Allow ordering on through table in many-many relationships

Previously one could only order on the ```model_to```'s table.

Now, you can order on the ```through``` table too which allows for instances like below where the user wants to change the order that associated images are in.

This'll all need properly checking over for regressions by someone that knows more about the ORM's inner-workings than I.

```php
class Model_Post extends \Orm\Model
{
protected static $_many_many = array(
'images' => array(
'conditions' => array(
'order_by' => array(
'images_posts.position' => 'asc',
)
)
)
);

}
```