getting coordinates and compare it

Hai any one can guide me, how to get coordinate values as input(x,y), and how to compare it like (x1,y1)<(x2,y2).
Would you explain how a point on a grid is less than/greater than another point on the same grid? I'm not understanding what you want.
Topic archived. No new replies allowed.