doctrine/mongodb-odm — pull request #587 by TomHAnderson (2013-05-23 19:40:18+00:00)
Title: Add sorts to wrapCursor

See https://github.com/doctrine/mongodb/pull/113

The DoctrineMongoODMModule\Paginator\Adapter\DoctrinePaginator calls $cursor->recreate(); in getItems() which recreates the cursor. However, when the Mongo cursor is wrapped in it's ODM container the sorts are lost so the paginator does not sort in the order of the cursor sent to it.