I have a csv which is has a list of lat-long coordinates with dates for each. I have code to split the data by date
X <- split(mydata, mydata$date)
But when I run the function the data is sorted numerically rather than by date. So for example this:
  long       lat       date
 26.71360 -31.67479 04-04-2013
 26.53347 -31.54144 05-04-2013
 26.36730 -31.39950 06-04-2013
 26.15438 -31.27452 04-05-2013
 26.25447 -31.06523 04-05-2013
 26.31591 -30.92225 04-05-2013
Would be converted to this: Note that dates are d/m/y
long       lat       date
 26.71360 -31.67479 04-04-2013
 26.53347 -31.54144 04-05-2013
 26.36730 -31.39950 04-05-2013
 26.15438 -31.27452 04-05-2013
 26.25447 -31.06523 05-04-2013
 26.31591 -30.92225 06-04-2013
How can I keep the order?
Thanks
 
    