boolean asc = ssc.orderingSpecification() == null || ssc.orderingSpecification().ASC() != null;
if (ssc.sortKey().columnName() != null) {
SimpleColumn sc = scopeIncludingAliases.getColumnIcShdWrapNambNind(ssc.sortKey().columnName().getText());
return unordered.orderBy(sc, asc);
} else {
int columnNo = visitUnsignedInteger(ssc.sortKey().unsignedInteger());
return unordered.orderBy(columnNo, asc);
}
}