Added code to check if GTF file is sorted