排序操作只能访问排序字段的值。
The sorting process only has to access the sort field's value.
排序字段的类型和规模的蔬菜作物。
现在不需要每次都调用sprintf,对hash表中的每一项,只需要调用一次该函数,就可以在hash表中生成一个排序字段,然后在排序时就可以使用这个排序字段了。
Instead of calling sprintf all those times, we call it just once for each item in the hash in order to generate a sort field in the hash, and then use that sort field directly during the sort.
尝试对关键字段1添加一个数值排序,看看如何改变这个结果。
Try adding a numeric sort on key field 1 to see how to change this.
选择这些链接之一,将根据指定的字段和方向对结果集进行重新排序。
Selecting one of these links re-sorts the result set by the specified field and direction.
文档各部分成为xml元素,并当作数据库中的字段处理—可以被定位、被排序、用于检索以及进行其他操作。
The document parts become XML elements and can be treated like fields in a database-able to be located, sorted, used for retrieval, and otherwise manipulated.
但是如果排序列引用了多值字段,则使用此选项时要格外小心。
Be careful, however, about using this option if your sort column references a multi-value field.
您也可以按多个字段排序,以及指定按升序或降序返回结果。
You can also order by multiple fields and specify whether to return the results in ascending or descending order.
检查标签中的列关键字,来确认列关键字已经被重新排序,并且与SQL查询返回的数据字段相符。
Check the column keys in the tag to make sure that the column keys are realigned to match the data fields returned by the SQL query.
如果不喜欢字段按照字母顺序排序,也不用担心。
Don't worry if you're not a fan of the alphabetical ordering of the fields.
FETCH(3)的结果集是根据ID字段排序的,并且使用T1的索引I1的合并联接而得到最终的结果集。
The result set from FETCH (3) is ordered by the ID column and joined using a merge join with index I1 for T1 to get final result set.
这些文件应当根据join字段排序。
sort的一个非常实用的特性是它用字段键进行排序的能力。
A very practical feature of sort is its ability to sort using field keys.
让我们根据第二个字段(水果名)对text1进行排序,从而生成一个新文件text5,然后使用制表符替换空格。
Let's also create a new file, text5, by sorting text 1 on the second field (the fruit name) and then replacing Spaces with tabs.
嗯,我时常用它来对Apache日志进行排序;键和偏移量表示法让我跳过了日期字段。
Well, I use it from time to time for sorting Apache logs; the key and offset notation lets me skip the date fields.
最大的改变是添加了comparator类(清单13)以及抽取适当字段并进行实际排序的方法。
The biggest change is the addition of a comparator class (Listing 13) and the methods for extracting the appropriate fields and performing the actual sorting.
初始化final字段的写将不会与构造函数关联的冻结后面的操作一起重新排序。
Writes that initialize final fields will not be reordered with operations following the freeze associated with the constructor.
第一列仅包括一个用于排序的ID字段(即客户编号)。
Column 1 includes just the ID field (the customer number) for sorting.
SortItem是一个包含字段名和排序顺序对的类。
SortItem is a class containing a field name and a sort order pair.
列表的排序顺序由position字段决定。
The sort order for lists is determined from a field called position.
为此,我创建了一个类来为每个字段自动处理comparator的排序和创建。
To that end, I create a class to handle both the sorting and generation of comparators for each of the fields automatically. Listing 6 shows the EmployeeSorter class.
有时您需要根据特定的字段对输出进行排序,您也可以使用 --sort选项指定要排序的字段来实现该目的。
Sometimes you will want to sort the output by particular fields, and you can do that too using the --sort option to specify the sort fields.
现在我们来解决字段按字母顺序排序的问题。
由于text2并不是按数值排序的,因此可以对它进行排序并使用join命令将具有匹配的join字段(在本例中指值为3的字段)的两行连接起来。
Since text2 is not sorted in numeric order, we could sort it and then join would join the two lines that have a matching join field (the field with value 3 in this case).
上面的代码行将为您提供字段名的排序后的频率分布,类似以下清单所示。
The above line will give you a sorted frequency distribution of your field names, similar to the following.
对于这个简单类,我希望能够对类的任意字段进行排序。
Given this simple class, I want the ability to sort on any field of the class.
清单14中的第二个例子显示对第一个字段按照数字顺序排序,而对第二个字段按照字母顺序排序。
The second example in Listing 14 shows sorting the first field numerically and the second by collating sequence (alphabetically).
如果启用了调试,将排序并显示字段。
第一个(也是惟一一个)排序列中包含A SIN字段。
如果愿意,可以添加更多选项—例如,添加一个“order ”选项返回按一个指定字段排序的记录。
You can add more if you like-for example, an "order" option to return the records ordered by a specified field.
应用推荐