Summing the Largest Numbers in a JavaScript Array A simple yet insightful look into turning an n*log(n) algorithm into an O(n) algorithm without much effort at all.