New: Added parameter to sort bam files by name.