排序字符串,一些项存在但长度为零,一些不见了
Sorting strings where some items are present but have zero length and some are absent
由于是按照字符排序的,因此您可能会对结果感到吃惊。
Since the sort order is by character, you might be surprised at the results.
幸运的是,sort命令可以按照数字值或字符值进行排序。
Fortunately, the sort command can sort by numeric values or by character values.
和西班牙语排序法一样,只要定义比较字符的规则即可。
As with the Spanish collation, you simply define rules that say how to compare characters.
对字符串数据进行比较并按一定顺序排列的过程称为排序。
The process of comparing string data and placing it in order is known as collation.
使用规则字符串定义字符排序的顺序。
You use the rule string to define the order in which characters are sorted.
指示字符串比较必须使用字符串排序算法。
Indicates that the string comparison must use the string sort algorithm.
要排序的字段的字符串。
要排序的字段的字符串。
应用推荐