sort bed file code example Example: sort bed file sort -k 1,1 -k2,2n a.bed chr1 1 10 chr1 80 180 chr1 750 10000 chr1 800 1000