Fixed incorrect compareTo for affiliation relation entity that was causing over-deduplication when used in sorted set.

Fixed https://trello.com/c/YLdM5LQC/835-ui-won-t-let-users-add-education-and-employment-at-the-same-organization-with-the-same-dates