Demonstration for sorting.
compares
swaps