String property1 = joinCondition.getProperty1Name();
String property2 = joinCondition.getProperty2Name();
// Create the Ordering for the first selector/property pair ...
DynamicOperand operand1 = new PropertyValue(selector1, property1);
Ordering ordering1 = new Ordering(operand1, Order.ASCENDING, NullOrder.NULLS_LAST);
// Create the Ordering for the second selector/property pair ...
DynamicOperand operand2 = new PropertyValue(selector2, property2);
Ordering ordering2 = new Ordering(operand2, Order.ASCENDING, NullOrder.NULLS_LAST);
if (leftSelectors.contains(selector1)) {
leftSortBy.add(ordering1);
rightSortBy.add(ordering2);
} else {