You can sort files in your gallery by name or last modified date.

1. Click the drop-down menu next to where it says Sort by.

2. You can sort by Name (A → Z) or last modified date as well as change the layout.