if (sort.getUserFunc() == null) {
poSort = new POSort(new OperatorKey(scope, nodeGen
.getNextNodeId(scope)), sort.getRequestedParallelisam(), null,
sortPlans, sort.getAscendingCols(), null);
} else {
POUserComparisonFunc comparator = new POUserComparisonFunc(new OperatorKey(
scope, nodeGen.getNextNodeId(scope)), sort
.getRequestedParallelisam(), null, sort.getUserFunc());
poSort = new POSort(new OperatorKey(scope, nodeGen
.getNextNodeId(scope)), sort.getRequestedParallelisam(), null,
sortPlans, sort.getAscendingCols(), comparator);