Sort JSON keys on output

otherwise we get random order and commit churn.