Hierarchical structures associated with order functions