Click or drag to resize
AkSortAdapterTSort Method (ListT, String, Boolean)
排序。

根据规则排列集合的条目。

Namespace: Appkit.Common
Assembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C#
public static void Sort(
	List<T> list,
	string name,
	bool ascending
)

Parameters

list
Type: System.Collections.GenericListT
要排序的集合。
name
Type: SystemString
属性的名称,属性的值为排序的依据。

名称大小写敏感,例如Prop1、Prop2及Prop3等。

ascending
Type: SystemBoolean
说明是否根据name的值由小到大排列list集合的条目,true表示由小到大排列、false表示由大到小排列。
See Also