Click the sort button. To sort again press the green flag again.
What I did here was to try to make as little substitutions of variables when they are already set to a number we know of (no other variables, no parameters), and it ended up making the script longer but improving by around 0.1 seconds for 10000 objects, min=0, max=10000, and iteration=1.