I have a groovy list of lists i.e.
list = [[2, 0, 1], [1, 5, 2], [1, 0, 3]]
I would like sort it by order of the first element, then second, th
You can do it in one line:
list.sort { String.format('%010d%010d%010d', it[0], it[1], it[2]) }