implement comparators for higher-level refs.
remove abortive attempt to override compareTo from ProjectRef