Searchkick: Order by two fields ?

Created on 17 May 2016  路  4Comments  路  Source: ankane/searchkick

Hello
How to order/sort by two fields ?

Thx

more info needed question

Most helpful comment

You can pass an array to order, like: order: [{"column1" => :desc}, {"column2" => :desc}]

All 4 comments

You can pass an array to order, like: order: [{"column1" => :desc}, {"column2" => :desc}]

its not work

Hey @yurgon, the tests for multiple orders pass. Can you create a failing test case for it?

Cleaning up issues

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiujiubad picture jiujiubad  路  4Comments

omgaz picture omgaz  路  5Comments

tomajask picture tomajask  路  4Comments

gerrywastaken picture gerrywastaken  路  3Comments

matthewmoss picture matthewmoss  路  4Comments