samtools merge combines several sorted alignment files into one sorted output file that keeps every input record and the existing sort order. The basic call is samtools merge -o out.bam in1.bam ...