fix for GPMONGODB-316 "sort functionality of Groovy does not work with MongoDB Plugin"