Sort json for consistency