How to sort a class array
问题 I am trying to sort a class array that has 5 values inside of it. 3 strings and 2 ints . I would like to sort the array from highest to lowest on the int values but can't figure out how to do so. My though process is to send the array into the class and then pull out the correct int value and sort for each array location without changing the other values of that location. How can I pull out these values so that I can sort them accordingly? If I could then I would know how to finish my code.