Sort:  

Sounds good! I just reconstructed the script I made for Puzzle of the Day #9

https://pastebin.com/eFHpwaQS

It is far more interesting I guess. I also added some comments so it's easy to understand if you have seen a line of code before in your life. :D

Use it as you wish in your post about the contest!

I really liked your puzzles! As a programmer I always try to solve problems as efficient as possible and so I did with your puzzles.

(You can attach this as a statement from me... xD)