13
While trying to search with id sorting (and paginating) im getting from the log:
SELECT `audits`.* FROM `audits` ORDER BY version, id DESC LIMIT 50 OFFSET 0
I am currently using this code:
@records = Audit.order("id DESC").page(page).per(50)
The problem is that the list retrieved is not correctly sorted by id descending.
BTW i am using audited-activerecord gem for audits, does this matter?