I have a the following Map:
Map <String,Map<String,dynamic>> _allData = {
"jewishStudies": {'jewish': ['b2019','a2019']},
"socialScience": {'social1': ['a2017','c2014','b2020'],
'social2': ['a2012','c2015','b2011'],
'social3': ['a2010','c2008','b2005']},
"humanities": {'human': ['z2017','c2014','k2020']},
"exactSciences": {'exact': ['d2017','c2014','c2020']},
"engineering": {'eng': ['a2017']},
"lifeScience": {'life1': ['y2017','c2014','d2020'],
'life2': ['t2017','t2014','s2020'],
'life3': ['e2017','c2014','b2020']},
"interStudies": {'inter1':['a2017','c2014','b2020'],
'inter2':['a2017','c2014','b2020']},
"general": {'gen': ['g2017','w2014','b2020']},
};
I want to do:
sort the enteries of the external map : Map <String,Map> by alphabetical order of the keys of that map (which there type is String).
sort the enteries of the internal map : Map<String,dynamic> by alphabetical order of the keys of that map (which there type is String).
sort the items in the List of the internal map : Map by alphabetical order.