{
throw(
StandardException.newException(
SQLState.AM_NO_FACTORY_FOR_IMPLEMENTATION, implementation));
}
SortFactory sfactory = (SortFactory) mfactory;
// Decide what segment the sort should use.
int segment = 0; // XXX (nat) sorts always in segment 0
// Create the sort.
Sort sort = sfactory.createSort(this, segment,
implParameters, template, columnOrdering,
sortObserver, alreadyInOrder, estimatedRows,
estimatedRowSize);
// Add the sort to the sorts vector