MCPcopy Index your code
hub / github.com/deepnote/deepnote / sortBlocks

Method sortBlocks

packages/runtime-core/src/execution-engine.ts:431–433  ·  view source on GitHub ↗

* Sort blocks by their sortingKey.

(blocks: DeepnoteBlock[])

Source from the content-addressed store, hash-verified

429 * Sort blocks by their sortingKey.
430 */
431 private sortBlocks(blocks: DeepnoteBlock[]): DeepnoteBlock[] {
432 return [...blocks].sort((a, b) => a.sortingKey.localeCompare(b.sortingKey))
433 }
434
435 /**
436 * Ensure a requested block exists in the selected notebooks and is executable.

Callers 1

runProjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected