ordering and sequencing shape pattern - Search