Book a free demo

๐Ÿ’ป Coding games ยท free, no sign-up

Sorting algorithms: watch the work.

Play Sorting Visualizer

Loading Sorting Visualizerโ€ฆ

Choose an algorithm and see each comparison and swap. Try a new random list and compare how many steps it needs.

ShareWhatsApp

How to play Sorting Visualizer

  1. Choose bubble, insertion or selection sort.
  2. Press Shuffle for a new list.
  3. Press Step to compare two bars or Auto play to watch the whole sort.
  4. Compare the number of comparisons and swaps.

Tips and strategy

  • Bubble sort moves a large value toward the end on each pass.
  • Insertion sort grows an ordered section from left to right.
  • Selection sort finds the next smallest value and puts it in place.

Keep playing

More games you might like

All 116 games โ†’

FAQ

Sorting Visualizer: questions

Which algorithm is fastest?

For the small lists here, speed depends on the starting order. The visualizer focuses on how each method works, not a universal winner.

Does this show real code?

It visualizes comparisons and placements for three standard sorting methods.

Start a conversation

Questions about classes?

A parent or guardian can share the learner's age, level and goals, and we'll suggest a starting point and confirm the format before anything is booked.

  • Tell us the learnerโ€™s age or grade and goals
  • Weโ€™ll suggest a suitable class or learning path
  • Weโ€™ll confirm format, timing and fees with a parent or guardian

For a childโ€™s class, please have a parent or guardian send the enquiry. Avoid sharing passwords or sensitive personal details.

Weโ€™ll use your details only to respond to this request.

Chat on WhatsApp
Esc

Try