use SQL 92 compliant group by and order by syntax

git-svn-id: http://svn.terracotta.org/svn/ehcache@8040 b9324663-ca0f-0410-8574-be9b3887307d
merging rev. 8040

git-svn-id: http://svn.terracotta.org/svn/ehcache@8041 b9324663-ca0f-0410-8574-be9b3887307d
not needed at this point

git-svn-id: http://svn.terracotta.org/svn/ehcache@8042 b9324663-ca0f-0410-8574-be9b3887307d
merging rev 8042

git-svn-id: http://svn.terracotta.org/svn/ehcache@8043 b9324663-ca0f-0410-8574-be9b3887307d