想象一下,你被赋予了一个字符串,你必须使用函数按字母顺序对该字符串进行排序.例:
sortAlphabets( 'drpoklj' ); //=> returns 'djklopr'
最好的方法是什么?
javascript sorting
javascript ×1
sorting ×1