getAncestor return order