Hi, thank you for the reply! I'm sorry I added so little information.
I thought DateHour was a character class but it was a factor. So I converted to character and order worked as you described. For this time I only wanted to convert DateHour to a number because I thought I had to do that in order to sort it, didn't know it could sort of type yyyy-mm-dd hh:mm:ss, but apparently it could, really great! I will try dput next time Thanks, Angelica -- View this message in context: http://r.789695.n4.nabble.com/order-a-data-frame-after-date-and-hour-tp3700721p3703233.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.