BZ1048741 Instance Log in business-central displays logs in random order...

Fix and unit test.

Actually, I cannot reproduce "the same timestamp (millisecond) logs" with this unit test so it passes even without the fix. I can reproduce it only when I try several times in business-central (probably thanks to hotspot optimization). But maybe this unit test is better than nothing.