Skip to contents

Sorts a list of annotations by either start time, frequency, or both.

Usage

sort_annotations(annotations, domain = "time", decreasing = FALSE)

Arguments

annotations

A list of Annotation objects.

domain

Domain of the annotations, either "time", "frequency", or "both".

decreasing

If TRUE, sort in decreasing order.

Value

A list of Annotation objects.