'samtools import' doesn't seem to be in their latest documentation. I think I used to use it too, but 'view' is now the prefered command for converting .sam to.bam
You need to make a .bam from bwa's .sam, and you run flagstat on that. You don't have to have sorted it.
Are you talking about percentage of total reads aligned? Alignment identity? Alignment score is a raw score based on number of matches/mismathces/gaps. I don't think it's represented as a percentage.
Was talking about percentage of total reads aligned. Sorry for the confusion then.