How to perform natural sorting on model and result should be in ActiveRecord::Relation ?
34 views
Skip to first unread message
Fahim Patel
unread,
Feb 21, 2015, 1:23:30 AM2/21/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Hello All,
I need to perform natural sorting on alphanumeric column's data and even return type should be ActiveRecord::Relation. I tried 'naturally' and ''naturalsorter'' gem but not successful.Below link explain what is natural sorting.