def get_best(self, field: str) -> Peer:
    sorted_peers = sorted(self.peers.values(), key=operator.attrgetter(field), reverse=True)
    return first(sorted_peers)
def get_best(self, field: str) -> Peer:
    sorted_peers = sorted(self.peers.values(), key=operator.attrgetter(field), reverse=True)
    return first(sorted_peers)