change the sample order