inline cmp for idict mapping