Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2610

Reapply sort order when calling first after a last

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.15
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gshiftlabs-dbuttineau gshiftlabs-dbuttineau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: