public void sort(Comparator<File> comparator){
synchronized (mLock) {
    Collections.sort(fileList,comparator);
  }
  notifyDataSetChanged();
}

public void sort ( Comparator < File > comparator ) { synchronized ( mLock ) { Collections . sort ( fileList , comparator ) ; } notifyDataSetChanged ( ) ; }
sorts the content of this adapter using the specified comparator .
