Fix offence sorting

Offences were sorted only by line number, which was problematic when
there were several offences on the same line. Now the column is taken
under consideration as well.