For modularity and to introduce the concept of functions, the sort routine itself is implemented as a separate procedure along with the array print routine.
为了实现模块化和介绍函数的概念,排序例程本身实现为一个单独的过程,数组输出例程也是这样。
The code in Listing 4 shows how you can sort an array of Czech words differently based on the locale used for the collator.
清单4内的代码显示了如何基于为这个collator所用的locale来对由捷克文组成的一个数组进行排序。
With the index array of scores created, we use the standard sort command as described in section 4 of the perlfaq to create the @sorted array of ordered search results.
创建分数索引数组后,我们将按照 perlfaq 的第 4 部分中的说明使用标准排序命令来创建排序后搜索结果的 @sorted 数组。
Well here is my array of 8, you know what, it's too much work to sort all 8.
这是有8个杯子的一个序列,要对这8个杯子进行排序就会花费较大功夫。
应用推荐