System::Globalization::SortKey::Compare μέθοδος

SortKey::Compare method

Συγκρίνει δύο κλειδιά ταξινόμησης.

static int System::Globalization::SortKey::Compare(const SortKeyPtr &sortkey1, const SortKeyPtr &sortkey2)
ParameterTypeΠεριγραφή
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.

Δείτε επίσης