I\'m using rails ransack ( https://github.com/ernie/ransack ) to allow the users to filter and sort some records. I get the filtered and sorted records using traditional me
You can call the reorder method with an empty string. E.g.:
Article.order('headline asc').to_sql
# "SELECT `articles`.* FROM `articles` ORDER BY headline asc"
Article.order('headline asc').reorder('').to_sql
# "SELECT `articles`.* FROM `articles` "