⌨️ap computer science principles review

Sorting

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

Sorting refers to arranging elements in ascending or descending order based on certain criteria, such as numerical value or alphabetical order.