columnName = orderByColumn.substring(orderByColumn.indexOf('.') + 1, spacePos);
ColumnMap column = dbMap.getTable(table).getColumn( columnName );
if ( column.getType() instanceof String )
{
if (spacePos == -1)
orderByClause.add( db.ignoreCaseInOrderBy(orderByColumn) );
else
orderByClause.add( db.ignoreCaseInOrderBy(orderByColumn.substring(0, spacePos)) + orderByColumn.substring(spacePos) );
}
else
{