code: public void captureOrderings(OrderingList<?> ordering) {
          try {
              if (ordering != null) {
                  for (OrderedProperty<?> orderedProperty : ordering) {
                      ChainedProperty<?> chained = orderedProperty.getChainedProperty();
                      if (!chained.isDerived()) {
                          mRootJoinNode.addJoin(mRepository, chained, mAliasGenerator);
                      }
                  }
              }
          } catch (RepositoryException e) {
              throw new UndeclaredThrowableException(e);
          }
      }
docs: Processes the given property orderings and ensures that they are
  part of the JoinNode tree.
  
  @throws UndeclaredThrowableException wraps a RepositoryException