The problem I'm having at the moment is that the numbering of my references is being thrown off by the fact that I have placed some citations within figures. For example, I have:
blah blah blah, \cite{ref A}.
\begin{figure}
........
\caption{Figure caption, from \cite{ref B}}
\end{figure}
blah blah blah, \cite{ref C}
I would like the references to be numbered in the order they appear in the final document, so in the example I would want above A to be numbered #1, B=2, etc. However, what I actually get is that the reference contained within the figure is labeled first, then the other references. So I would get B=1, A=2, C=3 in the above example. That way, when you read the compiled document, reference 2 appears before refernece 1...

I'm using the natbib bibliography style, formatted with unsrtnat.
Does anyone have any ideas on how I can sort this? Thanks in advance!