compareRef

true iff distance(n1, ref) < distance(n2, ref), i.e. n1 is strictly closer to ref than n2 is. Port of bool compare_ref(...). This is the comparator RoutingTable.findNode uses to order results by closeness to the target.