Hii in line graph iam giving x axis values randomly like this

{x:43, y:54}

{x:0, y:23}

{x:24, y:14}

{x:12, y:44}

{x:54, y:14}

but it is not plotting in linear order

when we give x axis values in increasing order like this

{x:10, y:54}

{x:20, y:23}

{x:30, y:14}

{x:40, y:44}

{x:50, y:14} then only it is plotting correctly.

can u plz tell me how to solve this.