fix: sort bug with offline contacts (one of them has unread message)