FeynCalc manual (development version)

CommutatorOrder

CommutatorOrder[exp] orders any Commutator and AntiCommutator lexicographically.

See also

Overview, Commutator, AntiCommutator.

Examples

Commutator[a, b] + Commutator[b, a] 
 
CommutatorOrder[%]

[a,b]+[b,a]

0