js sort is kind of wordy