Sort an array with only one local variable | Hacker News Reader