public void sort(int fromIndex, int toIndex) {
   synchronized (mutex) {
     list.sort(fromIndex, toIndex);
   }
 }
 public void sort() {
   synchronized (mutex) {
     list.sort();
   }
 }