So, i have a two-dimensional Array of ID's and vote count - voteArray[i][0] = ID, voteArray[i][1] = vote count
I want the top 3 voted items to be displayed in different colors, so i have a 2nd Array - sortArray.
Then when i diplay the results i plan on using the data from sort array to find out what color the voteArray data should have. The data from voteArray should be in correct order by ID.
SO this is what I do:
sortArray = voteArray;
sortArray.sortOn("1",Array.NUMERIC);
This messes up the sorting of the data in voteArray. What am I doing wrong?