Test sort a list