If a portrait image appears rotated in the Portrait tab, it is most likely caused by a photo editing software that has improperly saved the image without updating the low-res thumbnail.
Try exporting the image again with different settings from your editing software or copy the image to a new file and resave.
A fix for this issue is on our roadmap for a future release.