gSort {ORFik} | R Documentation

## Sort a GRangesList, helper.

### Description

A helper for [sortPerGroup()]. A faster, more versatile reimplementation of GenomicRanges::sort() Normally not used directly. Groups first each group, then either decreasing or increasing (on starts if byStarts == T, on ends if byStarts == F)

### Usage

    gSort(grl, decreasing = FALSE, byStarts = TRUE)

### Arguments

`grl` | a `GRangesList`
`decreasing` | should the first in each group have max(start(group)) ->T or min-> default(F) ?
`byStarts` | a logical T, should it order by starts or ends F.

### Value

an equally named GRangesList, where each group is sorted within group.

[Package ORFik version 1.14.7 Index]