A simpler alternate approach would be to compare bags-ofwords.
since our possible orderings are bound by the induced tree structure, we might overzealously prune a candidate with a different tree structure that allows a better target order.