sort exercise 3-16 by line number