Spontaneous sorting in human and chimpanzee