How do I go about sorting an array with 3 to 4 pieces of information via descending order of the first variable?