MCPcopy
hub / github.com/mitmproxy/mitmproxy / sort

Function sort

web/src/js/__tests__/ducks/flows/_utilsSpec.ts:83–83  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

81 ["c", 2],
82 ]);
83 const sort: Comparer<Elem> = (a, b) => a.w - b.w;
84 // not in-place
85 expect(updateViewItem(v, idx, { id: "a", w: 5 }, sort).view).not.toBe(v);
86 expect(updateViewItem(v, idx, { id: "a", w: 5 }, sort)._viewIndex).not.toBe(

Callers 3

updateViewItemFunction · 0.85
findInsertPosFunction · 0.85
indexSpec.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…