Account for insertions when sorting alignments by base