mongodb/docs-ecosystem — pull request #192 by ahmehri (2014-08-12 09:10:06+00:00)
Title: Correct document field

The result of the `$group` operation is the document with `_id` and `average` keys. Therefore, the `$sort` operation should be realized on the `average` and not the `amount` field.