Why sorting an array makes a Python loop faster | Hacker News Reader