sonar violations are posted as part of verified scoring. Verified scoring is posted by the gerrit build's sucess/failure.
I have configured sonar violations to be posted under "sonar-verified" category.
But this also happens sometimes.
Probably the scoring on two different labels happens in two different threads and comments are posted whichever finishes first
Please find the attached screenshot