需要遍历该列表,将每个单词拆分为经过排序的字母数组,然后再次合并数组。
You want to iterate through the list, breaking each word into a sorted array of letters, then joining the array again.
命令sort从指定文件中读取单词列表并按字母顺序进行排序。
The command sort reads a list of words from the named file and alphabetizes them.
在下面的示例中,第一个查询按从A开始的字母顺序对单词进行排序,第二个查询按降序对相同的单词进行排序。
In the following example, the first query sorts the words in alphabetical order starting from a, and second query sorts the same words in descending order.
应用推荐