* Sort blocks by their sortingKey.
(blocks: DeepnoteBlock[])
| 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. |