private void sortActivities(){
synchronized (mInstanceLock) {
    if (mActivitySorter != null && !mActivites.isEmpty()) {
      mActivitySorter.sort(mIntent,mActivites,Collections.unmodifiableList(mHistoricalRecords));
      notifyChanged();
    }
  }
}

private void sortActivities ( ) { synchronized ( mInstanceLock ) { if ( mActivitySorter != null && ! mActivites . isEmpty ( ) ) { mActivitySorter . sort ( mIntent , mActivites , Collections . unmodifiableList ( mHistoricalRecords ) ) ; notifyChanged ( ) ; } } }
sorts the activities based on history and an intent . if a sorter is not specified this a default implementation is used .
