resolved issue where sorting events by ObjectId failed because of lack of comparable support