Such an order is chosen on the basis of where the head a h and the dependent a d inheriting the gap are placed within the involved trees.
in our algorithm we need to represent several intermediate parsing states.