-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
None
I just ran into this bug in a project. Basically, if you change the sort
option on a criteria, it updates the sort on the original criteria and
the cloned copy, rather than just updating the sort on the cloned copy
that is, if you do:
names = Person.all.asc(:name)
names_reverse = names.desc(:name)
then both names and names_reverse will subsequently be sorted
descending
I wasn't quite sure where the right place to put this test was, so I'm
just starting it here, and will move it around as I get guidance