Sorts the notes listed in the panel.
The listed annotations (a copy that may be sorted in place).
Context of the notes panel.
The annotations in display order.
OptionalgetReturns the title of the separator that starts a group; also called for the first note to title the first group.
The note before it; undefined for the first note.
The first note of the group.
Context of the notes panel.
OptionaldocumentViewerKey: number
Key of the document viewer whose notes are listed.
The title; undefined or null shows an empty title.
OptionalnameName of the strategy, used by UI.setNotesPanelSortStrategy; a built-in strategy with the same name is replaced. Required by UI.addSortStrategy.
OptionalshouldDecides whether a separator starts before a note. Separators are only drawn when getSeparatorContent is given too.
The note before it.
The note being placed.
Context of the notes panel.
OptionaldocumentViewerKey: number
Key of the document viewer whose notes are listed.
Whether a new group starts at currNote.
A sort strategy of the notes panel, registered with UI.addSortStrategy.