Making sure the modal is actually sorted numerically and allow some file...

...s to be on the second page for sure by adding the key in more than one time for the first page.