System::Globalization::SortKey::Compare 方法

SortKey::Compare method

比较两个排序键。

static int System::Globalization::SortKey::Compare(const SortKeyPtr &sortkey1, const SortKeyPtr &sortkey2)
参数类型描述
sortkey1const SortKeyPtr&第一个排序键。
sortkey2const SortKeyPtr&第二个排序键。

ReturnValue

-1 if sortkey1 is less then sortkey2, 1 - if sortkey1 is greater then sortkey2, 0 - if sortkey1 is equal to sortkey2.

另见