added ordering to the printed points