tomchristie/django-rest-framework — pull request #1955 by bmcustodio (2014-10-14 22:41:48+00:00)
Title: Provide an easy way to have JSON keys sorted.

I though it would be useful to provide a way to sort keys on the output of `JSONRenderer`. This way it becomes easier to achieve this — one just needs to subclass `JSONRenderer` and set `sort_keys = True` instead of overriding `render`. I chose to keep this value defaulting to `False` to keep compatibility with current implementations.