Index: net/base/host_port_pair.h |
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h |
index 547e8982ec50b287a770c99c4bec4860bd876905..35d244ef2425025854573d9bee36b5a71ddcb082 100644 |
--- a/net/base/host_port_pair.h |
+++ b/net/base/host_port_pair.h |
@@ -15,11 +15,12 @@ struct HostPortPair { |
// If |in_host| represents an IPv6 address, it should not bracket the address. |
HostPortPair(const std::string& in_host, uint16 in_port); |
+ // TODO(willchan): Define a functor instead. |
// Comparator function so this can be placed in a std::map. |
bool operator<(const HostPortPair& other) const { |
- if (host != other.host) |
- return host < other.host; |
- return port < other.port; |
+ if (port != other.port) |
+ return port < other.port; |
+ return host < other.host; |
} |
// ToString() will convert the HostPortPair to "host:port". If |host| is an |