Fixed sorting of screenshots in generated PDF file