你不仅可以对简单类型的数组项进行排序,可以通过属性来排序对象。
You can sort objects by property, not just simple basic items.
调用应用程序提供的算法:C运行时库函数qsort 排序对象数组,但你必须提供比较函数。
To Invoke an Application-Supplied Algorithm The C runtime library function qsort sorts an array of objects, but you must supply the function that compares objects.
这是另外一个可以支持排序的对象集合的类,其中每个排序键必须是唯一的。
This is yet another class that supports sorted collection of objects where each sort key must be unique.
同时,你需要制作你的精灵动画程序,不得不自己排序所有对象,以便他们以正确的顺序绘制。
Also, you will need to make your Sprite routines, and you have to sort your objects yourself, so they will be drawn in the right order.
平面表示按照类型组织所有数据库对象,允许按照名称、模式、连接别名等对对象进行排序。
The flat presentation organizes all the database objects by type, which enables you to sort objects by name, schema, connection alias, and so on.
但是对本文来说,它是不合适的,只要简单查看一下该规范就可以看出,E4XXML对象具有的内置功能能够对XML元素进行细致准确的排序。
While it isn't appropriate for this paper, a quick look at the specification will show that the built-in functions that E4X XML objects have allow the order of the XML to be carefully crafted.
历史视图打开,显示对业务对象的修改,可以按日期对修改排序。
The history view opens to show revisions to the business object and to enable you to group revisions by date.
序列:序列接口用于需要在跨数据对象的属性进行排序时操纵数据对象(数据对象被称为一个排序类型)。
Sequence: The sequence interface is used to manipulate data objects when ordering across a data object's properties is required (the data object is said to be a sequenced type).
在本文后面部分,我将解释如何通过使用一个Comparator对象来定制排序。
Later in this article, I'll explain how to customize the sorting using a Comparator object.
Group对象然后再处理排序的问题。
sortBy是一个sort对象数组,用于确定如何对返回的数组排序。
sortBy is an array of sort objects that determines how the returned array is sorted.
这个自变量接受一个函数,这个函数返回一个经装饰的对象并“在幕后”进行Schwartzian排序。
This argument just takes a function that returns a decorated object and does the Schwartzian sort mechanics "behind the scenes."
例如,对于查询,mobl暴露了Collection类型,它拥有对实体对象的集合进行过滤、排序和分页的方法。
For instance, for querying, mobl exposes the collection type, which has methods to filter, sort and page the contents of a collection of entity objects. These methods would can be called as follows.
单击Finish,然后在每一个提示对象的Properties窗格上,将Multi - Select属性修改为Yes,保证Required属性设置为No,然后在需要时添加排序。
Click Finish, and then in the Properties pane for each prompt object, change the Multi-Select property to Yes, ensure the required property is set to No, and add sorting if required.
本文档描述一种使用定制的IBMCognos8ReportStudio工具箱对象在列表上应用动态列排序的技术。
This document describes a technique which applies dynamic column sorting on a list using custom IBM Cognos 8 Report Studio toolbox items.
MatchResult对象包含已排序列表中的所有组。
The MatchResult object contains all groups in an ordered list.
该研究自1939年起每十年开展一次,主要让研究对象对18个择偶标准按照“无关紧要”到“非常重要”的标准进行排序。
Conducted every decade since 1939, the study asks participants to rank a list of 18 characteristics they would want in a partner on a scale ranging from "irrelevant" to "essential."
如图5所示,每个对象都与一些基本的元数据信息相关联,对象以一个类型加一个已排序的属性列表的形式表示。
As shown in Figure 5, each object is associated to some basic metadata information, represented by a type and an ordered list of properties.
XML是一种功能强大的内容处理工具,可以将混合了文本和对象的文档转换为可排序的、可调整的、有层次的集合。
XML is a powerful medium for content, as it turns your documents from a mash of text and objects into a sortable, adjustable, hierarchical collection of pieces.
不允许使用大对象作为索引键,因为一般情况下不能够对大对象进行比较和排序。
Using large objects as index keys is disallowed because they cannot, in general, be compared and sequenced.
默认以某种逻辑将表内对象排序。
对象资源管理器详细信息本页右键单击该列标题,然后单击以清除排序规则复选框。
On the Object Explorer Details page, right-click the column headings, and then click to clear the Collation check box.
现在,我们添加一些功能,让用户能够对这些对象进行排序,以根据不同的条件显示结果。
Now, add some functionality so users can sort these objects to display according to different criteria.
此后,源数据对象或数据源控件本身可以对数据进行排序,并将数据返回到各页中。
The source data object or the data source control itself can then sort data and return data in pages.
DataStudioAdministrator提供一系列视图,可以用它们排序和筛选数据库对象。
Data Studio Administrator provides an array of views that enable you to sort and filter your database objects.
不能对ole对象字段进行排序或索引。
例如,可以向排序算法传递对比较两个对象的方法的引用。
For example, a sort algorithm could be passed a reference to the method that compares two objects.
需要一个分为两阶段的方法来处理数据(TreeMap中包含LocationDTO对象),由于位置数据提供者会返回按邮编排序的TreeMap。
A two-phase approach is required to process the data (TreeMap containing LocationDTO objects), because the Location data Provider returns a TreeMap sorted by zip code.
需要一个分为两阶段的方法来处理数据(TreeMap中包含LocationDTO对象),由于位置数据提供者会返回按邮编排序的TreeMap。
A two-phase approach is required to process the data (TreeMap containing LocationDTO objects), because the Location data Provider returns a TreeMap sorted by zip code.
应用推荐