Sort comments before grouping by path / position.

Since they don't always come in sorted that way.