Turbo mode (shift clicking the green flag) works best with this project. When the colors are done randomizing, press the right arrow key to normal sort and the left arrow to double sort. Look in the notes and credits for more information of what each sort does.
Yep, you've seen these on Youtube, now you see them on Scratch! Normal sorting first randomizes numbers 1 through 50, then organizes them starting from 1. The colors on the screen are purely visual to better display what the system is doing, and it uses pen, so that last part is simply to fix the display. Double sorting is similar to normal sorting except two variables work together to sort both ends - Number sorts the lower end and Number 2 sorts the higher end. I'll probably add new methods of sorting later, but for now, this is what I have. Also I can't seem to put Number 2's inputs into the New Order list.