TIP: Use Markdown or, <pre> for multi line code blocks / <code> for inline code.
These forums are read-only and for archival purposes only!
Please join our new forums at discourse.kohanaframework.org
add another order by
  • Let say I already created an ORM query like this with an order_by column id to get the recent most row check the code below ORM::factory('user')->limit($limit)->offset($offset)->order_by('id','desc')->find_all();

    And I want to add another order_by with a "column status" where "column status" 1 is the first regardless with its id how can I do this?

  • ->order_by('id','desc')->order_by('...','...')

  • weird at first I thought it was not working ... hmmmmmm.. thanks....

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion