test sorting of BSON IDs