I'm trying to sort each list in the list of lists without using foreach and flattening the two dimentional array.
I already have a working code with foreach which does very complicated stuff, but I'd like to improve my code using map, so the only way it can be improved is to find a way to use sort without flattening the array.
right now, i can sort the inner arrays by their sizes, but i could not be able to figure out yet how to get inside of the arrays and sort them numerically.
thanks for your response.
I already have a working code with foreach which does very complicated stuff, but I'd like to improve my code using map, so the only way it can be improved is to find a way to use sort without flattening the array.
right now, i can sort the inner arrays by their sizes, but i could not be able to figure out yet how to get inside of the arrays and sort them numerically.
thanks for your response.