A few popular sorting alogrithms, implemented in JavaScript.