accname="Msine" 
for i in LTR TIR helitron; do 
	(grep ^"#" ${accname}_${i}_TE.gff3; grep -v ^"#" ${accname}_${i}_TE.gff3 | sort -k1,1 -k4,4n) | sed '/^$/d' | bgzip > ${accname}_${i}_TE.gff3.gz
	tabix -p gff ${accname}_${i}_TE.gff3.gz 
done