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.

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.

Reply via email to