You could add an extra sequence on the dataframe you wish to sort on. Merge together, sort by the sequence, delete the sequence. It's a bit more work, but it will give you what you want.
Bart -- View this message in context: http://n4.nabble.com/Merge-sort-F-not-preserving-order-tp1312234p1340790.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ Rfirstname.lastname@example.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.