Detect BLDC Direction From Hall Switch
This is very similar to a 3-phase phase sequence detector application. The circuit of Figure 1 will get you most of the way to your requirements. 







simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. A single CD4013 dual D flip-flop will suffice.

Q2 will pulse for an ABC rotation. It will remain off for an ACB rotation.