MCPcopy Index your code
hub / github.com/plotly/dash / getSorting

Function getSorting

components/dash-table/src/dash-table/derived/header/content.tsx:179–183  ·  view source on GitHub ↗
(columnId: ColumnId, sortBy: SortBy)

Source from the content-addressed store, hash-verified

177}
178
179function getSorting(columnId: ColumnId, sortBy: SortBy): SortDirection {
180 const sort = R.find(s => s.column_id === columnId, sortBy);
181
182 return sort ? sort.direction : SortDirection.None;
183}
184
185function getSortingIcon(columnId: ColumnId, sortBy: SortBy) {
186 switch (getSorting(columnId, sortBy)) {

Callers 2

doSortFunction · 0.85
getSortingIconFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…