I have an array with subarrays and I want to sort numerically and go down the first element in subarrays. So, for example, I want to take the next array "
array = [[2,text],[5,text],[1,text]]
and sort it to become
array = [[5,text],[2,text],[1,text]]
Is there any simple function? Thanks!
source share