pattern order