Originally Posted by

**Malcolm McLean**
You often need your own sort. Both as a learning exercise, and because qsort is recursive, so unacceptable for some applications. Also sometimes you can beat qsort() is you know about a problem. Consider a football league. After each match day, the club positions need to be sorted. But each club can only move one or two positions at once, because you only get a maximum of three points for a game and you can only play one game a day. So the list is almost sorted, and qsort is a poor choice of algorithm.