Making sure the modal is actually sorted numerically and allow some files to be on the second page for sure by adding the key in more than one time for the first page.