y s

y s

  • NA
  • 2.6k
  • 26.3k

need help to sort number

Apr 3 2011 1:21 PM
In my arrayList, i have number which are shown below:
1 2
1
2
2 1
2
1
2 3
2
3
1 2 3
1 2
3
3 1
3
1
1 3 2
1 3
2
2 3 1
2 3
1

now i want to sort some number.
For example:  (i) 2 3 in ArrayList, i wan sort it to 1 2.
(ii) 2 3 1 in ArrayList, i wan sort it in 1 2 3.
may i know how to sort the number?
hope anyone can help me..

Answers (7)