Adding ordering for rule fragments