SpringSource/grails-data-mapping — pull request #126 by psramkumar (2013-06-04 04:06:26+00:00)
Title: Update HibernateCriteriaBuilder.java

fixed the issue http://jira.grails.org/browse/GRAILS-10116
changed
if (direction.equals(ORDER_DESCENDING)) {
TO
if (direction.equalsIgnoreCase(ORDER_DESCENDING)) {