adding "ordering" element to the agree grammar which is used to determine the total order for proving assumptions