Suppose I have an array:
["Team A, 6, 2, 12","Team B, 7, 1, 14","Team C, 4, 4, 8"]
How could I sort the array such that the last numbers in each array element are in descending order? That is:
["Team B, 7, 1, 14","Team A, 6, 2, 12","Team C, 4, 4, 8"]
I have checked out various compare functions, but I cannot figure out how to tailor them to this specific situation.