A recent answer of Ville Salo on the diameter of a Cayley graph induced by bubble sort generators (adjacent transpositions) has inspired this variation.
Many sort algorithms are position based: you go through a list of pairs of positions in the (integer) array, check the two values, and perform a swap or not. For many simple algorithms (especially in sorting networks) the list of position pairs is fixed, while for less simple algorithms the list may be created based on the input (viz. Quicksort).
The question above uses a limited list of pairs of positions (adjacent transpositions) to investigate. Suppose we use a limited list of values instead?
For the next bit of the post, assume we have scanned an array representing a permutation of the first n positive integers. We can peek all we want, but our swaps are limited to swapping adjacent values: if k and k+1 are both integers in the array, we are allowed to swap them, otherwise keep looking. Thus we never swap the two values 3 and 8 in this scheme, for example.
There may be a duality between indices (position labels) and values that could be exploited to answer questions like the diameter of the analogous graph, but I am not seeing it yet. The first question for me is: does such an exploitable duality exist?
The second and official question for this post is: has the idea of (restricted) value based sorting been explored in the literature? If so, what literature and by what name?
Gerhard "Sorting With A Different Priority" Paseman, 2020.05.08.