So supposing I have an arraylist named arr and it contains integers
arr[0] = 7
arr[1] = 4
arr[2] = 1
arr[3] = 3
I want to sort them but excluding the first array which is arr[0] so I want the array to be like this
arr[0] = 7
arr[1] = 1
arr[2] = 3
arr[3] = 4
Any ideas how to do it? Could this be done by using a comparator?