Sorting
The process of arranging elements in ascending or descending order according to defined criteria. Sorting enables binary search, removes duplicates, and improves data presentation. Different sorting algorithms offer different time/space tradeoffs. Choosing appropriate sorting algorithms depends on data characteristics and constraints.
Real World
Amazon sorts its product listings by price, rating, or relevance — each option uses a different sorting criterion to help customers find what they need quickly.
Exam Focus
Define 'stable sort' precisely — equal elements retain their original relative order — as this is a common short-answer question.
How well did you know this?