I’ve added ES5 source there now, and also included, with a couple of examples a mappendOrdering function, which makes it easier to write secondary (+) sorts like ‘by descending length and then AZ’
http://rosettacode.org/wiki/Sort_using_a_custom_comparator#JavaScript