cmpcol -i -lb '|' -d '|' file1:2 file2:2 | perl -F'\|' -lape '$_=join "|",@F[1,0,2]'