doctrine/mongodb — pull request #192 by scottaubrey (2014-10-02 11:38:42+00:00)
Title: Fix Curso::sort() casting "$meta" arrays/objects to integers

Fixed the casting as mentioned in https://github.com/doctrine/mongodb/issues/152#issuecomment-57297661

Also included extra tests for this new and the existing casting behaviour.