This ensures that two comments by the same author on the same line are sorted properly.
- Group Reviewers
- Restricted Diffusion Commit
rPf9a92c7631aa: Sort inline comments by id in case of ties
Before this patch, made two comments that appeared in the wrong order. With this patch, they sort correctly.
I think the inlines passed in here always share the same author, so sorting by length doesn't actually make a ton of sense. What do you think about just <num, id>?
(The casts are unnecessary with sprintf().)