Equality, resemblance, and order