This function produces a sorted GTF file from an unsorted GTF file. The default order is by Chromosome, Start, End (reverse) and feature (gene -> transcript -> OTHERS)
sort_gtf(gtfFile, outFile, forceOverwrite = FALSE)
Path to the sorted GTF file
Path to the input GTF file
Path to the output GTF file, if not provided the output will be the input path (without extension) with the suffix sorted.gtf
If output file exists, overwrite the existing file. (default FALSE)