Have you fiddled with Type A targeting? Up and down scrolls up and down through party list, and left and right scrolls through your selected target mode. If you have it in targetmode All, left and right selects closest to farther target in your view.

Holding Auto-run button and the Confirm button at the same time will change your target mode to enemy which makes left and right target enemies only from closest to farthest.

Holding Auto-run button and the Cancel button at the same time will change your target mode to Party which makes left and right target Party members only from closest to farthest.

Holding Auto-run button and the Menu button at the same time will change your target mode to Friendly which makes left and right target Friendly PC and NPC including Party members only from closest to farthest.

Holding Auto-run button and the Emote button at the same time will reset your target mode to All.