Using a sorted list to fix the spec test