Sort in order of ascending x
See layer and qplot for more information on creating a complete plot from multiple components.
geom_line. Override with the geom argument: stat_sort(geom="point").
geom
stat_sort(geom="point")