//TODO: this check shouldn't be necessary, since the order by is not introducing new expressions
if(! canPushSymbol(symbol.getSymbol(), true, modelID, metadata, capFinder, record)) {
return false;
}
boolean supportsNullOrdering = CapabilitiesUtil.supports(Capability.QUERY_ORDERBY_NULL_ORDERING, modelID, metadata, capFinder);
NullOrder defaultNullOrder = CapabilitiesUtil.getDefaultNullOrder(modelID, metadata, capFinder);
if (symbol.getNullOrdering() != null) {
if (!supportsNullOrdering) {
if (symbol.getNullOrdering() == NullOrdering.FIRST) {
if (defaultNullOrder != NullOrder.FIRST && !(symbol.isAscending() && defaultNullOrder == NullOrder.LOW)
&& !(!symbol.isAscending() && defaultNullOrder == NullOrder.HIGH)) {