Sorting algorithms in JavaScript | Hacker News Reader