Skip to content

how to sort array by inner array size

how to sort array by inner array size? i want to sort my array by size of array inside. each array that has more items most put at the end and each array has less items most got to top. note: I want sum of size of all items and sub items. this is my array: i want this output: