pattern ordering checks