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?