Press "a" to randomize the blocks, press "s" to reverse-sort the blocks, press "d" to sort the blocks. The algorithm randomly switches 2 blocks until they are all sorted. It may never complete...