I'm using Kohana's ORM library, and I'm wondering if there is any way to order the results that are generated.
Example:
$priorities = ORM::factory('priority')->select_list('id','label'); //how to order these?
What is select_list
?
Btw, ordering in kohana is performed by order_by()
method
...->order_by('field', 'asc')
More samples you can find at: http://kerkness.ca/kowiki/doku.php?id=building_complex_select_statements#order_by
Also that wiki contains a lot of usefull articles about kohana: http://kerkness.ca/kowiki/doku.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With