Blog Archives

>>a=[[1,2,1],[9,8,7],[6,4,3]] >>a.sort() >>a [[1, 2, 1], [6, 4, 3], [9, 8, 7]] #sorted by the first column

Posted on by yhtian | Leave a comment

>>a=[[1,2,1],[9,8,7],[6,4,3]] >>a.sort() >>a [[1, 2, 1], [6, 4, 3], [9, 8, 7]] #sorted by the first column

Posted on by yhtian | Leave a comment