Sorts the properties of a JSON object alphabetically.