MCPcopy Create free account
hub / github.com/TanStack/query / statusAndDateSort

Function statusAndDateSort

packages/query-devtools/src/utils.tsx:140–146  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

138}
139
140const statusAndDateSort: SortFn = (a, b) => {
141 if (getStatusRank(a) === getStatusRank(b)) {
142 return dateSort(a, b)
143 }
144
145 return getStatusRank(a) > getStatusRank(b) ? 1 : -1
146}
147
148export const sortFns: Record<string, SortFn> = {
149 status: statusAndDateSort,

Callers

nothing calls this directly

Calls 2

getStatusRankFunction · 0.85
dateSortFunction · 0.70

Tested by

no test coverage detected