Compare two contacts by display name.
#include <bbmsp/bbmsp_contactlist.h>
BBMSP_API int bbmsp_contact_compare(const bbmsp_contact_t *contact, const bbmsp_contact_t *other_contact)
BlackBerry 10.0.0
A pointer to the first contact name.
A pointer to the contact name to compare to.
You can use this function to create a list of contacts that are sorted alphabetically.
A negative integer if contact display name is lexicographically less than other_contact display name; zero if contact display name is lexicographically equal to other_contact display name; a positive integer if contact display name is lexicographically greater than other_contact display name. -1 is returned if invalid parameters are provided.