mongoid/mongoid — pull request #2610 by gshiftlabs-dbuttineau (2012-12-05 16:26:48+00:00)
Title: Reapply sort order when calling first after a last

When calling first after a last, the inverted sort order is maintained for the first which results in the incorrect document being returned.

This patch just reapplies the original sort order when calling a first.