compare swapped BDTs