added sort to samtools