That's strange. Photos does sort by date and time for most of us. There are certain specific reasons why pictures might not appear that way. Let's analyze which might apply to you.
You posted in the "Photos for Mac" forum, so I assume you are viewing these pictures in he Photos app on a Mac of some sort. Which type of Mac, running what level of macOS?
If you create a user album, add some photos, and request a date/time sort (not manually), do you still see pictures in "some crazy order"?
Were all of the pictures in question taken by an iPhone? The same iPhone or multiple? (If other cameras are involved, there may be a time zone mismatch.)
Have you tried repairing your Photos library?
Is your Photos library in its default position in the user Library folder on your internal disk, or has it been moved? If moved, was it to elsewhere on the internal disk or somewhere else?
How are you getting your pictures from your iPhone(s) (and cameras) to the Photos library on your Mac?