When trading you have the ability to swap character for trading (nice feature btw!), but the items comparison are still for the character that started the dialogue.