I can’t seem to find a solution for this but suppose I have JSON data:
data = [{"color":"blue","score":"3"},{"color":"red","score":"2"},....]
How do I reverse the order of color and score so it’s:
data = [{"score":"3","color":"blue"},{"score":"2","color":"red"},....]
How I write in comment you should sort your dicts and convert them into OrderedDicts