C
csgraham74
Hi Guys,
Just wondering if someone could help me with an arraylist issue.
I have an array of integers
Arraylist
4 , 2, 11, 2, 21, 3 ,15 , 30
i want the arraylist to now be sorted according to the values either
ascending or descending.
at present it appears that the arraylist.sort() method sorts these
values as text ie. 11,13,2,2,3,30 etc...
can anyone help
thanks
CG
Just wondering if someone could help me with an arraylist issue.
I have an array of integers
Arraylist
4 , 2, 11, 2, 21, 3 ,15 , 30
i want the arraylist to now be sorted according to the values either
ascending or descending.
at present it appears that the arraylist.sort() method sorts these
values as text ie. 11,13,2,2,3,30 etc...
can anyone help
thanks
CG