# Sorting references in revtex4-1 by order of appearance?

When preparing an article using the `revtex4-1` LaTeX package, how can I ensure that the references appear in the order that they appear in the text of the document? I've seen answers like Bibliography Style - Order of Appearance, but `revtex4-1` bakes in a lot of other BibTeX packages, such as `natbib`, and so I would like to avoid compatibility problems posed by depending on `biblatex` if that is at all possible. Thanks!

-
It seems to me that using `\bibliographystyle{unsrtnat}` should give you what you want. – egreg Jul 20 '11 at 16:11
Which revtex journal style are you using (ie, `prl`, `pra`, etc)? This should just work, without any special actions from you. You need to run latex, bibtex, latex, latex for a changed order of citations to propagate through the .aux, .bib, .aux (again) files. – Lev Bishop Jul 20 '11 at 17:40
@egreg some versions of revtex4-1 have problems with `\bibliographystyle{}` (should be fixed with the latest patch, though). But it shouldnt be necessary anyway. – Lev Bishop Jul 20 '11 at 17:41
@egreg, @Lev Bishop: It seems that using `unsrtnat` did the trick, so I guess I'm using a late enough version of `revtex4-1` to work. Thanks! – Chris Granade Jul 20 '11 at 18:13

The style to use is `unsrtnat`, provided by the natbib bundle:
``````\bibliographystyle{unsrtnat}