Sorry if this sounds really noobish if you will but I basically have an array that stores numbers. I need to sort these numbers so that I could get the highest number by doing
array[#array]
And the second-lowest doing
array[#array-1]
I really don’t wanna use if statements here cause this is something that has to be done a lot in my code. But if I do need to, i’d like to know the absolute most efficient way of doing so