Stable sorting demo (http://www.alex-arriaga.com/how-to-get-same-results-when-sorting-javascript-arrays-in-all-browsers/)