// In addition, we need to refetch if we use a batching display
// group, as the sort ordering is
// always applied from the DB.
if ((sortOrderings != null) && (ds instanceof EODatabaseDataSource)) {
EOFetchSpecification fs = ((EODatabaseDataSource) ds).fetchSpecification();
if (!fs.sortOrderings().equals(sortOrderings) && (fs.fetchLimit() != 0 || useBatchingDisplayGroup())) {
fs.setSortOrderings(sortOrderings);
_hasToUpdate = _hasToUpdate ? true : alwaysRefetchList();
}
}
// this will have the side effect of resetting the batch # to sth