Pattern could be sorted by prefix