TikTok interview question

Describe an algorithm that does sorting.