Question: Perhaps we have an array of arrays such as this:

```
["a", "11.36"]
["b", "12.13"]
["c", "11.00"]

```

Is there a simple function to be able to sort them based on the 2nd index?

Answer: 
This is how I changed my code so it now downloads all of the pdfs and skips the one (or more) that may be correupted. I also had to add the `self` argument to the function. 

```
from PyPDF2 import PdfFileMerger
import requests
import sys

urls = links 

def download_pdfs(self):
    merger = PdfFileMerger()
    for url in urls:
        try:
            response = requests.get(url)
            title = url.split("/")[-1]
            with open(title, 'wb') as f:
                f.write(response.content)
        except PdfReadError:
            print(title) 
            sys.exit()
    merger.append(title)

    merger.write("allminues.pdf")
    merger.close()

```
I read that EOF is a kind of tag included in PDF files. [link in portuguese](https://living-sun.com/pt/python/724834-eof-marker-not-found-while-use-pypdf2-merge-pdf-file-in-python-python-pdf-pypdf2.html)

However, I guess some kinds of PDF files do not have the 'EOF marker' and PyPDF2 do not recognizes those ones.

So, what I did to fix "PdfReadError: EOF marker not found" was opening my PDF with Google Chromer and print it as .pdf once more, so that the file is converted to .pdf by Chromer and hopefully with the EOF marker.

I ran my script with the new .pdf file converted by Chromer and it worked fine.