Sort problems

`pi, pj := p[i].Position, p[j].Position`