Imported photos from iOS are unordered

Hello guys,
I Have been running nextcloud on a Raspberry Pi 4 mounted with my WD My Cloud ex2 Ultra NAS.
Everything seems running pretty good!
Yesterday I started to import all my iPhone photos and I noticed that despite it had organized all my photos inside folders, while viewing them on the photos app they are all unordered. It is a mess!!
I also noticed that the photo file timestamp it not the time it has been shooted but the time it was imported.
How can I sort those photos?