I have a bank 1 sensor 2 code, is it upstream or downstream on pass side? on 2007 Jeep Wrangler

I went to autoparts store today to buy new sensor and they gave me different colored plug, is 1st sensor on exhaust 1/1 or 1/2, seen a few different diagrams and i'm confused.

Asked by for the 2007 Jeep Wrangler
2 answers 4 comments
SENSOR 2 is always downstream. Behind the converter.
Thanks, the auto parts store gave me wrong sensor anyways.
Lol! It happens all the time.
I replaced the sensor, had a friend clear the light, but it came back on afterwards and came up same code and sensor again...
What is the code number?