change the order of the samples