When using different page numberings, the package makeindex first cites the index on roman numbered pages and then on arabic numbered pages. I have an appendix with roman numbering, thus I want to change this sorting: When I have a key word that occurs both in the main part and in the appendix, then the index should first have the pagenumber on the main part, then the pagenumber in the appendix. How can I achieve this?
minimal example:
\documentclass{article}
\usepackage{makeidx}
\makeindex
\begin{document}
Testtext \index{index}
\newpage
\pagenumbering{roman}
Testtext \index{index}
\printindex
\end{document}