insert and sort

examples of insert and sort