MCPcopy Create free account
hub / github.com/alephdata/aleph / onSort

Method onSort

ui/src/components/SortingBar/SortingBar.jsx:75–83  ·  view source on GitHub ↗
({ field, direction })

Source from the content-addressed store, hash-verified

73 };
74
75 onSort({ field, direction }) {
76 const { query, sortDirection, sortField, updateQuery } = this.props;
77
78 const newQuery = query.sortBy(
79 field || sortField,
80 direction || sortDirection
81 );
82 updateQuery(newQuery);
83 }
84
85 renderSortingButtons() {
86 const { intl, sortingFields, sortDirection, sortField } = this.props;

Callers 1

renderSortingButtonsMethod · 0.95

Calls 1

sortByMethod · 0.80

Tested by

no test coverage detected