Two Questions about the Select Output: How do you Sort it and how do you convert it to an array?

Two Questions about the Select Output: How do you Sort it and how do you convert it to an array?
It was easy to convert to an array. I just defined an Array variable and set it to the output of the Select. Also, I could sort the array and use it as input to an HTML Table just like the Select.