Forum: Ruby on Rails Gem Mongoid: multiples order_by in embbeds_many not work?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rodrigo Mendonça (Guest)
on 2014-08-26 17:16
(Received via mailing list)
School embeds_many :students

In rails console:
School.first.students.order_by(:name.asc, :email.desc)

Works with name. but why ordering from second field (email) not work??
a bug?

I opened an issue in mongoid gem, but maybe it's a mongodb problem

This topic is locked and can not be replied to.