final Adapter adapter = Torque.getAdapter(crit.getDbName());
orderByClause.add(
adapter.ignoreCaseInOrderBy(sqlExpression)
+ ' ' + orderBy.getOrder());
selectClause.add(
adapter.ignoreCaseInOrderBy(sqlExpression));
}
else
{
orderByClause.add(sqlExpression + ' ' + orderBy.getOrder());
if (crit.getAsColumns().get(sqlExpression) == null)