ernie/ransack — Issue #70: allow sort by select fields from custom select fields
Author: andrewstretche
Created: 2012-02-09 19:58:26+00:00
State: open

When I select some custom fields such as count(id) as total_num and pass q[s]=total_num+asc or q[s]=total_num+desc, it is ignored by search(params[:q]). Because when I try model.total_num, it works, it should allow order by total_num when I pass it in q[s]=total_num.