[Tex/LaTex] place floating tables and figures in order of appearance

floatspositioningtables

In my document I number tables and figures with the same counter, using the answer to
https://stackoverflow.com/questions/3865036/using-a-single-count-for-figures-and-tables-in-latex/7771554#7771554.

I'd like them to appear in numerical order. That usually happens, but in one case I see Figure 1.2 after Table 1.3 – probably because the Table is smaller and happens to fit on the current page.

I could fix this by calling this Table a Figure without torturing the text too much, but a LaTeX solution would be automatic.

If no one answers soon I can put together an MWE by playing with Figure, Table and page lengths.

The question and answer at Order of float types on float pages seems to deal with the opposite of what I want.

Best Answer

LaTeX keeps all floats of the same type in order, so you need (at least)

\makeatletter
\let\ftype@table\ftype@figure
\makeatother

so figures and tables are the same type (1)

Related Question