Relax constraint that input file sorted by read name

It doesn't need to be sorted by read name, but alignments for the
same read do need to be on consecutive lines.