Sorting rows and colums in a matrix (with some music, and some magic) https://freakonometrics.hypotheses.org/3674