Sort:  

I don't know if it's because I added the link to the source in the beginning, but I also rewrote several lines in it to make it easier to read. So those changes could have had an impact on the algorithm!

Haha.. probably, but you lost the @cheetah vote. Its worth all of $0.001 at least.