In a Yahtzee project, I have 5 integer vairabls n1, n2, n3, n4 and n5. I need a function that creates and uses a sorted integer array i(0 to 5) from the variables listed above. The 5 variables are form-level variables. The array will only be used in the function.

I know there's Dim i as arraylist and there's i().sort. I'm just not sure how to use them.