I have this object of student grade data, looks something like this
data = {
9: {
Math: {
className: {
grade: 'A'
}
className2: {
grade: 'A'
}
}
History: {
className: {
grade: 'A'
}
className2: {
grade: 'A'
}
}
English: {
className: {
grade: 'A'
}
className2: {
grade: 'A'
}
}
}
}
it goes from 9-12.
I was wondering if I could sort the Math/History/English part in a specific order, like I want English first then Math then History.
Thanks