Order document editions in mongoid

rather than in ruby.