I'm having an issue wherein JSON automatically alphabetizing stored data is giving me a lot of trouble.
Using
<FormControl component="fieldset">
<FormLabel component="legend">Days of the Week</FormLabel>
<FormGroup aria-label="position" row>
{Object.keys(days).map(key => {
return (
<FormControlLabel
key={key}
checked={days[key]}
onChange={event => changed({ [key]: event.target.checked })}
control={<Checkbox color="primary" />}
label={key}
labelPlacement="top"
/>
);
})}
</FormGroup>
</FormControl>
);
I end up with my days being displaced a Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
I've come across solutions to similar problems for C, Python, and others but not for ReactJS unfortunately, any help would be appreciated.