I would like to sort the values of a dictionary (which are lists) based on one of the lists. For example say I have the dictionary:
data = {'AttrA':[2,4,1,3],'AttrB':[12,43,23,25],'AttrC':['a','d','f','z']}
and I would like to sort this based on the values associated with AttrA, such that:
data = {'AttrA':[1,2,3,4],'AttrB':[23,12,25,43],'AttrC':['f','a','z','d']}
Thank you in advance!