I wonder how to do multifield sorting in mongodb driver of ruby
Example of sorting from official site where we can find the following example:
# Sort in ascending order by :i coll.find.sort(:i) # Sort in descending order by :i coll.find.sort(:i => :desc)
According to these examples I tired to do something like this
and this is didn't work
Do you know the right way to do multifield sorting in ruby driver.