UniversityofAlaskaAnchorageCS / RotationFrenzy

Educational Physics Game
MIT License
2 stars 0 forks source link

ChapterSelectScreen not displaying levels in correct order on website #35

Open kaltinril opened 6 years ago

kaltinril commented 6 years ago

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.