Sorting Chaos

Take a random grayscale tensor and sort the pixels.

Original

Sorted

Notes

Originally I tried to just draw the random image and then pull it from the canvas to sort it. The shape of the tensor is not the same making it a bit more complicated, might come back and revisit trying ths approach another time though.