你不仅可以对简单类型的数组项进行排序,可以通过属性来排序对象。
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.
应用推荐