It appears the website is not returning the files in alphabetically sorted order. Each time I CTRL+F5 refresh the Chrome browser and go back to the ChapterSelectScreen, the order changes.
ChapterSelectScreen.loadWorldData() needs to be updated so it adds the items in level/sub-level order.
Easiest way would be to sort the results from line 60:FileHandle[] files = Gdx.files.internal("levels/").list();
This appears to work fine on Desktop (Windows). It always returns the list of files in alphabetical order, so perhaps the linux machine the web server is running on doesn't guarantee that.
It appears the website is not returning the files in alphabetically sorted order. Each time I CTRL+F5 refresh the Chrome browser and go back to the ChapterSelectScreen, the order changes.
ChapterSelectScreen.loadWorldData() needs to be updated so it adds the items in level/sub-level order. Easiest way would be to sort the results from line 60:
FileHandle[] files = Gdx.files.internal("levels/").list();
This appears to work fine on Desktop (Windows). It always returns the list of files in alphabetical order, so perhaps the linux machine the web server is running on doesn't guarantee that.