Skip to content

@graphty/graphty-element / session / RecordSort

Interface: RecordSort ​

Defined in: graphty-element/src/session/types.ts:110

What a page of records is sorted by: one of the keys its records carry.

Properties ​

descending? ​

readonly optional descending?: boolean

Defined in: graphty-element/src/session/types.ts:118

Largest first. Default false.


key ​

readonly key: string

Defined in: graphty-element/src/session/types.ts:116

The record key to sort by: a top-level attribute, or id (and source or target for an edge), read literally. Numbers (bigints among them) come before text, text sorts in natural order ("2" before "10"), and a record without the key comes last in either direction.