0

Fully sort a matrix
Given a multidimensional array of nonnegative integers, sort it at every depth (lexographically), starting from the innermost.
For example, with this array:
[ [ [5, 1, 4],
[10, 7, 21] ],
[ [9, 20, 2],
[4, 2, 19] ] ]
You'd sort at the deepest first:
[ [ [1, 4, 5], ...