Skip to content

@graphty/graphty-element / session / ResultSort

Interface: ResultSort ​

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

A page sorted by a run's result: the run, optionally one of its fields, and the direction.

Elements the run measured come first, in value order, and ties keep the graph's order; elements it has no value for come last in either direction. A grouping field (a partition's group, a hierarchy's level) sorts by group size instead of by the group's id, so descending puts the largest group first.

Extends ​

Properties ​

descending? ​

readonly optional descending?: boolean

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

Largest first. Default false.


field? ​

readonly optional field?: string

Defined in: graphty-element/src/session/shared.ts:49

One of the fields the run publishes; the run's primary field when absent.

Inherited from ​

ResultRef.field


run ​

readonly run: RunRef

Defined in: graphty-element/src/session/shared.ts:47

The run.

Inherited from ​

ResultRef.run