Your pictures were too close in for me to tell up from down (worse, I haven't had an e36 yet). I'm not sure I know.
I can tell you that on an e30 the lower plug is for the crank sensor, if you're looking at it from the driver's fender the wires are low, the connector flips up for the lower plug. The cam sensor is the opposite, flips down into the upper plug.