which of 4 dc voltages is highest?
THE BAT-CAVE..... > XYZ Comparators







simulate this circuit &ndash; Schematic created using CircuitLab

NOTE: A,B,C and D need to be low impedance. If not you also need unity gain buffers on each line.