compare To
Compares two given channels and returns 0, -1 or 1 depending on their comparison results.
Comparisons are done under the give GroupChannelListQueryOrder.
GroupChannelListQueryOrder.CHRONOLOGICAL: compares channel's createdAt.
GroupChannelListQueryOrder.LATEST_LAST_MESSAGE: compares channel's last message's createdAt.
GroupChannelListQueryOrder.CHANNEL_NAME_ALPHABETICAL: compares channel's name.
GroupChannelListQueryOrder.METADATA_VALUE_ALPHABETICAL: does not perform any comparison. Always returns 0.
Return
the value 0 if c1 is equal to c2; a value less than 0 if c1 is less than c2; a value greater than 0 if c1 is greater than c2.
Since
3.0.173
Parameters
GroupChannel object to compare.
GroupChannel object to compare.
GroupChannelListQueryOrder to compare the given channels by.
SortOrder on which order to compare the channels to. Refer to GroupChannelListQueryOrder.channelSortOrder.