SpringSource/grails-data-mapping — pull request #43 by cdanielw (2012-04-05 10:43:52+00:00)
Title: Patch for GRAILS-8993 - Queries where results are sorted and result size limited provide invalid results for mocked domain classes

I made a change to SimpleMapQuery that ensure that the results are sorted before max and offset is applied (GRAILS-8993).