How can I sort an array of objects that looks like that:
data = [{'Name': 'Peter', 'Chemistry': 10, 'Math': 9, 'Geography': 5},
{'Name': 'Bob', 'Math': 6, 'Chemistry': 10, 'Geography': 5}]
by course name only. Hence, it will look like
data = [{'Name': 'Peter', 'Chemistry': 10, 'Geography': 5, 'Math': 9,},
{'Name': 'Bob', 'Chemistry': 10, 'Geography': 5, 'Math': 6, }]