so you want them to be ordered as first 1 then 6, then 136 etc?
On 13 Mayıs, 13:53, Francisco Costa <[email protected]> wrote: > I have this query db(db.space.id.belongs(result_id)).select() > the result id is an unsorted array of ids > I don't want the query results to be order by id > > The SQL list this > SELECT space.id, space.name FROM space WHERE space.id IN > (1,6,136,2,18,119,122) > > i want the result to be in the order of the ids array

