Bugfix

Fixed invalid sort on mongodb 2.6