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

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