Mark sorted bounds and clamp array size #10

Merged
lobo merged 1 commits from bugfix/sorting_fix into main 2026-02-04 16:01:45 +01:00

1 Commits

Author SHA1 Message Date
e3d835300b Mark sorted bounds and clamp array size
In the sorting service, mark boundary elements as 'sorted' after each forward/backward pass and push snapshots to capture those states; also adjust the backward loop to start at end-1 to avoid rechecking the already-placed element. In the component, clamp new array size to the MIN_ARRAY_SIZE..MAX_ARRAY_SIZE range in newArraySizeSet. Adds an import for MIN from @angular/forms/signals.
2026-02-04 16:01:18 +01:00