code: public static void doSetAscRecursively(ComparatorItem comparatorItem, boolean asc) {
      ComparatorItem tmp = comparatorItem;
      while (tmp != null) {
        tmp.setAsc(asc);
        tmp = tmp.getNextComparatorItem();
      }
    }
docs: Sets the sort order of all items.
  
  @param comparatorItem the (root) item
  @param asc            the new sort order