Multiline if events happen in the same .001 Millisecond

Is there a method to grouping messages that occur at the same .001 millisecond? So there are some logs that I would like to preserve order and I think the only way is to group messages that occur at the same .001 millisecond. Or if log accuracy is only up to the second. Group them up!

Thanks,
Mike