I am having an issue with wrapfigure and I can't seem to find a solution anywhere. Not even in the documentation. What happens is as follows: I have a wrapfigure environment in my code followed by a standard figure environment. The standard figure is placed on top, but gets a figure number higher than the wrapped figure. This is my code:
\documentclass{article}
\usepackage{lipsum}
\usepackage{wrapfig}
\usepackage{graphicx}
\begin{document}
\begin{wrapfigure}{r}{3cm}
\includegraphics[width=\linewidth]{C:/Users/<username>/Desktop/1.jpg}
\caption{Picture of a dog.}
\end{wrapfigure}
\lipsum[1-2]
\begin{figure}
\centering
\includegraphics[width=.7\linewidth]{C:/Users/<username>/Desktop/2.jpg}
\caption{Another picture of a dog.}
\end{figure}
\end{document}
And this is my output:
Does any of you perhaps know the solution?

figurecounter. But I'll bet there's another way. (Unrelated, butgraphicxprovides the imagesexample-image-a(and b and c) so that your minimal working example (which is very helpful) can be fully self-contained.) – Teepeemm Jun 15 '19 at 13:38