sort list of tuples by reordering tuples,"sorted(A, key=operator.itemgetter(2, 0, 1))"