Given an array of arrays array
. Nested arrays contain only numbers. Return new array with same nested arrays. Nested arrays are sorted descending from one with largest summary of its memebers.
sortArrays([[1], [1, 1], [-2], []])
sortArrays([[1, 2, 3],
[2, 1, 3],
[0, 2, -3],
[9, -9, 1]])