Skip to content

Sorting

See why the clever sorts beat the obvious ones.

Start the module

1. Sorting Basics · 4 min

0 of 10 lessons · 0% complete

Start module

Sorting visualizer

Every lesson in this module opens with an animation you can step through. This is the first one — Sorting Basics: Comparisons, swaps, stability: the vocabulary of order.

Sorting Basics

Step 1 of 5

Five records, in the order they arrived. Judge any sort on three things: time, extra memory and stability.

Lessons
10
Minutes
50
Problems
15
Concepts
6

Quiz yourself: 3 questions from this module

1 / 3

A stable sort guarantees that: