Sort keys in output JSON