Last Updated: September 09, 2019
·
571
· 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.