this worked for me, I came up with this trigger:
mysql> create trigger insert_check_associations before insert on associations
-> for each row
-> begin
-> if new.email1>new.email2 then
-> set @a = new.email2;
-> set new.email2 = new.email1;
-> set new.email1 = @a;
-> end if;
-> end;//
Query OK, 0 rows affected (0.07 sec)
This trigger swaps the two values in the increasing order.