Fixes issue #38: output is now sorted by line and column number