24 blocks! (For the sorting method. Not setup, the forever loop, custom blocks, or visualization.) I strongly recommend turbo mode. The visualization sprite slowed the sorting way down. Try deleting the visualization sprite, and running it again. Way faster.
Not very fast, but the sorting script was made in 2 minutes, and I will share a better one today, hopefully. How it works is it compares a value with the next one in the list. If the first value is greater than the second, they get swapped, so the first one is now toward the right.