R/sortBySeqnameAndStart.R
sortBySeqnameAndStart.Rd
Sorts a GRanges object by seqname and start position
sortBySeqnameAndStart(gr) sortBySeqnameAndEnd(gr)
GRanges object
GR <- as(c('chr2:1-1', 'chr1:1-1'), 'GRanges') GR <- sortBySeqnameAndStart(GR)