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

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