mongoid/mongoid — Issue #1400: Option to disable automatic sorting of referenced objects
Author: teunvanvegchel
Created: 2011-11-02 12:13:28+00:00
State: open

Hi,

I have models Group and Person. They have a has_and_belongs_to_many relation with each other.
My problem is this: for a reason I won't bother you with, I want group.persons to return the persons in exactly the same order as I put them in (the order I get for group.person_ids).

I've tried to use the :order option for this, but apparently there is no value that will prevent the sorting.