To make the order in which files are displayed in the gallery effective, you need to select the "Manual sorting" criterion in the "Settings" section of the album editing page, or in the "Thumbnails" section of Options / Photos and videos.