MCPcopy Create free account
hub / github.com/ShipSecAI/studio / sortRuns

Function sortRuns

frontend/src/store/runStore.ts:135–139  ·  view source on GitHub ↗
(runs: ExecutionRun[])

Source from the content-addressed store, hash-verified

133};
134
135const sortRuns = (runs: ExecutionRun[]): ExecutionRun[] => {
136 return [...runs].sort(
137 (a, b) => new Date(b.startTime).getTime() - new Date(a.startTime).getTime(),
138 );
139};
140
141const upsertIntoRuns = (runs: ExecutionRun[], run: ExecutionRun) => {
142 const existingIndex = runs.findIndex((item) => item.id === run.id);

Callers 2

upsertIntoRunsFunction · 0.85
runStore.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected