Sort JSON keys for consistency.