Fix crasher caused by reverse sorting

This crash was due to equality check failing when group got updated
for the last message. Groups are considered equal if the Firebase groupId
matches