MCPcopy Create free account
hub / github.com/adobe/react-spectrum / sort

Method sort

packages/react-stately/src/table/useTableState.ts:69–69  ·  view source on GitHub ↗

Calls the provided onSortChange handler with the provided column key and sort direction.

(columnKey: Key, direction?: 'ascending' | 'descending')

Source from the content-addressed store, hash-verified

67 sortDescriptor: SortDescriptor | null;
68 /** Calls the provided onSortChange handler with the provided column key and sort direction. */
69 sort(columnKey: Key, direction?: 'ascending' | 'descending'): void;
70 /**
71 * Whether keyboard navigation is disabled, such as when the arrow keys should be handled by a
72 * component within a cell.

Callers 15

buildPersistedIndicesMethod · 0.65
getCachedDateFormatterFunction · 0.65
getCachedNumberFormatterFunction · 0.65
getCachedNumberParserFunction · 0.65
getSymbolsFunction · 0.65
listFilesFunction · 0.65
copyFixtureProjectFunction · 0.65
fixFunction · 0.65
insertObjectFunction · 0.65
buildPageIndexFunction · 0.65

Calls

no outgoing calls

Tested by 2

listFilesFunction · 0.52
copyFixtureProjectFunction · 0.52