Best played on a larger screen

Sort Wave

Watch shuffled bars sort themselves into order, with a tone for every move.

About Sort Wave

Sort Wave is a screen full of shuffled bars and an algorithm working through them in real time. Every comparison and every write is drawn as it happens, so you are watching the method rather than the result. Bubble sort crawls the largest value to the right end over and over, building a finished band that grows from the edge inward. Insertion sort keeps a tidy sorted region on the left and shuffles each new bar back into place. Selection sort sweeps the whole remaining range looking for a minimum, then makes one decisive swap. Quick sort scatters everything into partitions that suddenly resolve. Merge sort works in silent halves that snap together.

Each operation plays a short tone pitched to the value being touched, and that is what turns a visualisation into something you want to keep watching. A nearly sorted region produces a rising scale; a shuffled one produces noise; quick sort's partitioning has a distinctive scattered clatter that sounds nothing like bubble sort's steady chirping. Tones are throttled so that even at the highest speed it stays musical rather than becoming a wall of sound.

When an algorithm finishes, a confirmation sweep runs left to right, turning each bar green in turn and playing its note — the sorted array played back as a clean ascending scale. Speed controls how many operations are executed per frame, from single-stepping slowly enough to follow every comparison up to finishing two hundred bars almost instantly. Bar count is adjustable too, which changes the character of each algorithm considerably. Free in the browser, nothing to install.

How to Play

  1. Pick an algorithm from the buttons — Bubble, Insertion, Selection, Quick or Merge. It shuffles and starts immediately.
  2. Watch the white bars, which mark the values the algorithm is currently comparing or writing.
  3. Use Speed to set how many operations run per frame, and Bars to change how many values are being sorted.
  4. When it finishes, a green sweep confirms the order from left to right. Press Shuffle to run the same algorithm again on a fresh arrangement.

Controls

Algorithm buttons
Choose the sorting method and restart
Speed slider
Operations executed per frame
Bars slider
How many values to sort
Sound
Mute or unmute the per-operation tones

Tips & Strategy

  • Run the same bar count through Bubble and then Quick. The difference in how long they take is the entire argument for why algorithm choice matters.
  • Set Speed very low on Insertion sort. It is the easiest one to follow move by move, because it behaves the way people sort a hand of cards.
  • Turn the sound on for Merge sort. The halves being combined produce two interleaving pitch ranges that you can hear resolving.
  • Push Bars to the maximum with Selection sort. The sweeping search for each minimum becomes a visible scanning line.
  • Listen to the final green sweep with sound on — a sorted array played back is a clean rising scale, and it is the best part.

Game Details

Developer
FreeOnlineGames Studio
Released
August 31, 2026
Last updated
August 31, 2026
Platform
Web browser (HTML5)
Price
Free to play
Install required
No

More Games Like This