jhund / filterrific

Filterrific is a Rails Engine plugin that makes it easy to filter, search, and sort your ActiveRecord lists.
http://filterrific.clearcove.ca
MIT License
911 stars 125 forks source link

filterrific_sorting_link behavior different than sort options #189

Open JenniferMB opened 5 years ago

JenniferMB commented 5 years ago

I have an HTML table on my view with a date field that I am transforming to text using the timeago gem. I have a leftnav area with a dropdown selection box which will sort the date values ascending and descending, when I apply the filter. This works beautifully. I have assigned the filterrific_sorting_link to the head of the column. When I click the header to toggle the sort direction, the formatting reverts to plain date values until I paginate, then the timeago text is once again applied. How can I configure the filterrific_sorting_link action to match that of the ordering filter? Thank you for your time and attention.