The numbering is done by pdf2html itself. When listing the previews you would get that weird ordering, but the UI isn't relying on that endpoint.