Last Updated: September 09, 2019
·
538
· brobertsaz

Mongoid Sorting

I was recently trying to get Mongoid sort_by working with time stamp but it would not sort. Switched to Model.asc(:fieldname) and that works fine.