Photoshop usually does a good job of stitching panoramas together. Occasionally, though, it gets confused, as in this view from the choir loft in Wichita’s St. Mary Cathedral.
Photoshop was able to make sense of the image when I dropped the frames at the extremes:
Bonus picture:
Right-click and open in a new window to see the pictures at full size.
In the wrong one, it managed to lose the entire center. I guess it got confused by the pillars.