public void sort(final Comparator<? super T> comparator){
synchronized (mLock) {
    Collections.sort(mList,comparator);
  }
  notifyDataSetChanged();
}

public void sort ( final Comparator < ? super T > comparator ) { synchronized ( mLock ) { Collections . sort ( mList , comparator ) ; } notifyDataSetChanged ( ) ; }
sorts the content of this adapter using the specified comparator .
