sorting the pixels within a photograph results in some cool effects. Here each vertical column of pixels is sorted by hue

#MathGIF #DataViz

@matthen2 did you use bubble sort?
@BernhardWerner just swapped adjacent pixels if they are out of order until it converged, since that can be implemented efficiently in a shader
@matthen2 In serial fashion or randomly? Serially that's exactly bubble sort. :-)
@sstadnicki in parallel, comparing odd and even consecutive pairs in alternating timesteps- so I guess a little different
@matthen2 Ahhh, neat! In that case probably some sort of variant on a shell sort.
Odd–even sort - Wikipedia