update index sort and aln