I have a list of this type :
l = [{"id":"21", "region" :['2', '6', '4']}, {"id":"12", "region" :['1', '3', '8']}]
I want to sort the list on the "region" field, and that also at 2nd index. that is :
l = [{"id":"21", "region" :['2', **'6'**, '4']}, {"id":"12", "region" :['1', **'3'**, '8']}]
How do I do it ? I am aware of itemgetter. But couldn't do with that also.