spring-projects/spring-data-mongodb — pull request #162 by christophstrobl (2014-04-03 06:53:22+00:00)
Title: DATAMONGO-888 - Mapping should be applied to Sort. 

`EntityBackedSortConverter`, as an instance of `SortConverter`, takes care of mapping properties to the according names to be used with mongodb.

Conversion will inspect properties within the backing entity to resolve `id`s and additional mapping information within the `@Field` annotation and apply those to the resulting `DBObject`.

The converter will not touch any properties unknown to the backing entity.

`Query.getSortObject()` has been deprecated and will be removed in a subsequent version.

---

Should be applied to both `master` and `1.4.x`.