Fixing test failures (the sort order has to always be specified to satisfy 3.4.x servers).
Merge pull request #334 from gavincornwell/master

Fixing test failures