cannot change sort order of endpoints

This commit is contained in:
Evan Tschannen 2020-05-20 00:00:06 -07:00
parent c09a28b0db
commit ed9d5dd857
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public:
return !(*this == r);
}
bool operator < (Endpoint const& r) const {
return token < r.token || (token == r.token && getPrimaryAddress() < r.getPrimaryAddress());
return addresses.address < r.addresses.address || (addresses.address == r.addresses.address && token < r.token);
}
template <class Ar>