Skip to content

Sorting: bubble, selection, and insertion

Handout

Putting an array in order

  • Sorting rearranges an array so the items go from smallest to largest.
  • We sort in place: we move items around inside the same array, with no return value.
  • Three classic methods do this: bubble, insertion, and selection sort.

Handout

Log in or create account

IGCSE & A-Level