001、
按照默认方式排序,并输出bam
samtools sort -o output.bam input.bam
002、
按照read name方式排序,并输出bam
amtools sort -n -o output.bam input.bam
。