What is the expected BigO Complexity of the following code?
private static <ListType> void sort(ArrayList<ListType> list,
Comparator<ListType> c) {
for (int i = 0; i < list.size() - 1; i++) {
int j, minIndex;
for (j = i + 1, minIndex = i; j < list.size(); j++)
if (c.compare(list.get(j), list.get(minIndex)) < 0){
minIndex = j;}
//swaping part
ListType temp = list.get(i);
list.set(i, list.get(minIndex));
list.set(minIndex, temp);