Exercise 8-15 (Test of List.sorted)