sort multidimensional change