https://billposer.org/Software/msort.html
