sort implemented (but not staying sorted!!!)