fix sort(List) bug