Sorting Lab for Squeak 6.1
==========================

Tutorial: https://learnsqueak.com/sorting-visualiser.html
Official runtime: https://squeak.org/downloads/
Tested: native Squeak 6.1, 64-bit build 23976.

Start in a copy of your learning image. In File List, select
sorting-final.st and choose fileIn. In a Workspace, Do It on:

LSSortApp open

The nine sorting-01.st through sorting-09.st files are complete cumulative
checkpoints. Progress forward; use a clean image for isolated earlier
checkpoints because file-in does not uninstall newer methods.

File in sorting-tests.st after the final source, then Print It on:

LSSortTest suite run

Expected: 47 passes, zero failures or errors. The exhaustive test includes
all arrays of lengths 0 through 5 with entries from {1,2,3}, across all three
strategies. Native review independently added twelve checks (59 total).

Controls: Step, Run, Pause, Reset, Shuffle; Slow/Medium/Fast tick requests;
Sample/Reversed/Sorted/Duplicates input; Bubble/Insertion/Selection; Compare
all. Click bars for keyboard focus: Space run/pause, N step, R reset,
Escape pause. Closing releases keyboard focus and scheduler registration.

Input contract: Arrays of 0 to 32 integers in 1..99. Model queries return
copies. Empty and singleton arrays are already complete. Reset restores the
last input; Shuffle becomes the new reset input. Algorithm changes restore
that same original input. Compare all uses independent copies of original.

Comparisons, swaps and steps are different quantities. Insertion uses
adjacent swaps; selection has explicit placement steps. Counts are logical
work, not timing measurements. Native rendering costs are additional.

Each sorting-exercise-N.st contains the complete final app plus its tested
solution. Exercise 3 adds gnome sort; select it from the Workspace with:

app := LSSortApp open.
app chooseAlgorithm: #gnome.

There is no persistence, external data, network access or package dependency
in this application. Close the window when finished and retain the source.
