In case you do want to treat friendship as commutative, here's a simple rule: require that the value of the id A is numerically smaller than the value of id B. If it's the other way around, swap them.
In reply to Re^3: best way to keep track of who's friends with whom
by bart
in thread best way to keep track of who's friends with whom
by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |