What version of iOS are you running on this iPhone 7?
Where are you looking when you find your photos out of order?
If you are running iOS 11.something, and you are looking in the "Photos" view (also known as Years, Collections, and Moments; represented by the two-stacked-rectangles icon on the lower left, and your photos there are not in the order taken (and clustered by location), then something is wrong.
If you are running iOS 11.something, and you are looking in the "All Photos" album in the "Albums" view (represented by the three-stacked-rectangles icon on the lower right), the photos are supposed to be in order by date added, and you just added all of your photos when you transferred them to this phone, so they might well not be order taken.
If you have an older iOS than 11, or if you are looking somewhere else, let us know what level and where you are looking.