Sorting Visualiser
Algorithm education
The idea
I wanted a way to see what standard sorting examples leave implicit, such as where an algorithm compares values, moves data, or spends extra work on particular input shapes.
What you can do
- Step through annotated array views with highlighted pseudocode, or use animated bars for larger inputs.
- Adjust speed and array size, toggle sound cues, and try random, reversed, nearly sorted, or custom data.
- Race two or three algorithms on the same array and compare their operations side by side.
How it works
A shared algorithm registry feeds the React playback views. Race Mode advances each algorithm by recorded comparisons and writes, so the comparison reflects algorithm work independently of animation speed. Web Audio provides optional sound cues.
- React
- TypeScript
- Vite
- Web Audio
Screenshots

