Method

PurpleContactcompare

unstable since: 3.0

[]

Declaration [src]

int
purple_contact_compare (
  PurpleContact* a,
  PurpleContact* b
)
[]

Description [src]

Compares contacts a and b.

Available since: 3.0

[]

Parameters

a

Type: PurpleContact

The first instance.

The argument can be NULL.
b

Type: PurpleContact

The second instance.

The argument can be NULL.
The data is owned by the caller of the method.
[]

Return value

Type: int

Less than 0 if a should be sorted before b, 0 if they sorted equally, and greater than 0 if a should be sorted after b.