X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Fcollectionz%2Finterval_tree.py;h=a8278a2dc8ea835a501951e3abddb9727d405930;hb=5fd1f68a58ef3bbf37528b9397a6950d7af661ab;hp=7ba190a5984814eb35ff7058181cdc3a79342dd6;hpb=eebe93c17138e2186f9e3bd029bc7d69dd91f242;p=pyutils.git diff --git a/src/pyutils/collectionz/interval_tree.py b/src/pyutils/collectionz/interval_tree.py index 7ba190a..a8278a2 100644 --- a/src/pyutils/collectionz/interval_tree.py +++ b/src/pyutils/collectionz/interval_tree.py @@ -47,7 +47,10 @@ class NumericRange(object): Returns: True is this range is less than (lower low) other, else False. """ - return self.low < other.low + if self.low != other.low: + return self.low < other.low + else: + return self.high < other.high @overrides def __eq__(self, other: object) -> bool: