I have the following dictionary:
DICT = {'ABC': [[u'2012-07-19', 1.22, 1, 1.22, 1, 0], [u'2012-04-26', 1.33, 210, 1.33, 210, 0], [u'2011-11-14', 1.25, 171, 1.32, 241, 70]],
'XYZ': [[u'2012-02-17', 1.82, 59, 1.25, 182, 123], [u'2011-04-06', 1.50, 30, 1.18, 54, 24], [u'2011-01-06', 1.21, 38, 1.17, 41, 3], [u'2010-06-21', 1.28, 26, 1.28, 26, 0]]}
Values are two dimensional list.
How can I sort keys based on the third column of values.
Let me explain: The third column minimum value of key 'ABC' is 1.22 (among 1.22,1.33 and 1.32). The third column minimum value of key 'XYZ' is 1.17 (among 1.25,1.18,1.17 and 1.28). Since 1.17 > 1.22 'XYZ' will be first and then 'ABC'.