flake8
passed.
JSHint
passed.
Review Request #10250 — Created Oct. 21, 2018 and submitted
This changes the JSON API payloads to output with keys in sort order.
While nicer for readability, this actually helps a lot with Python 2/3
compatibility, as there are differences in sort order. By sorting keys,
we get predictable output and ETags that we can rely upon.
Unit tests pass on Python 2.7, 3.5, and 3.6.