Quick sort uses a divide-and-conquer approach to sort a list. It works by selecting a pivot element, partitioning the list into elements less than, equal to, and greater than the pivot, and then recursively sorting the sub-lists. The example shows quick sort being applied to a list of numbers, with the pivot being swapped with other elements to partition the list into sorted sub-lists on each iteration.