Duplicate sort pattern

Is there anyway to duplicate the sort patten of one array to another?

For instance, if sorting one array causes the third and first values to switch, can i apply that same switch pattern to another array where the array values wouldn’t neccessarily sort the same as the first?