JS: Sort a list alphabetically