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