Wiring BLTouch V3.1 on Anet A6 and the JST connector polarity
Black is GND and should not be connected to VCC.
Note that you can simply pop out the metal parts (use a pin to press a small clip) from the connector and rearrange how you want them to be.
Note that most printer controller boards have the GND of all the endstops connected, so technically you don't need the black wire at all. I make my own extension cables (from 4 wire cable) where the brown and black are connected at the sensor side and a single white wire is used for the Z-min endstop.