js toolkit: alphabetizing