Let me describe my problem with an example.

This is my sorted, indexed sam file.
seq.2851795 89 1 4470815 255 ...