MCPcopy Index your code
hub / github.com/adobe/react-spectrum / sort

Function sort

packages/react-stately/src/data/useAsyncList.ts:369–374  ·  view source on GitHub ↗
(sortDescriptor: SortDescriptor)

Source from the content-addressed store, hash-verified

367 dispatchFetch({type: 'loadingMore'}, load);
368 },
369 sort(sortDescriptor: SortDescriptor) {
370 dispatchFetch(
371 {type: 'sorting', sortDescriptor},
372 (sort || load) as AsyncListLoadFunction<T, C>
373 );
374 },
375 ...createListActions({...options, getKey, cursor: data.cursor}, fn => {
376 dispatch({type: 'update', updater: fn});
377 }),

Callers

nothing calls this directly

Calls 1

dispatchFetchFunction · 0.85

Tested by

no test coverage detected