have ScatterPoints constructor sort points by x value