if(localeSensitive)return toCollator(pc,Collator.TERTIARY);
return new TextComparator(isAsc,true);
}
// numeric
else if(sortType.equalsIgnoreCase("numeric")) {
return new NumberComparator(isAsc);
}
else {
throw new ExpressionException("invalid sort type ["+sortType+"], sort types are [text, textNoCase, numeric]");
}
}