gregbell/active_admin — Issue #1015: config.sort_order syntax error
Author: Awea
Created: 2012-02-14 18:52:39+00:00
State: open

I'm using this to order by default a list on the order attributes :

config.sort_order = 'order_desc'

But I obtain this error in return :

QLite3::SQLException: near "order": syntax error: SELECT "lists".* FROM "lists" WHERE "lists"."project_id" = 4 ORDER BY "lists".order desc LIMIT 30 OFFSET 0

When I change 'order_desc' by 'id_desc' it works but I need to sort the list on the order attribute, to fix it I need to change the attribute ?