bool operator()( const Agent& agent1, const Agent& agent2 ) const { return agent1.getDistance() < agent2.getDistance(); }