sort pattern change