summaryrefslogtreecommitdiff
path: root/cliff/columns.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliff/columns.py')
-rw-r--r--cliff/columns.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cliff/columns.py b/cliff/columns.py
index 6ecef64..b9cac5e 100644
--- a/cliff/columns.py
+++ b/cliff/columns.py
@@ -26,6 +26,11 @@ class FormattableColumn(object, metaclass=abc.ABCMeta):
self.__class__ == other.__class__ and self._value == other._value
)
+ def __lt__(self, other):
+ return (
+ self.__class__ == other.__class__ and self._value < other._value
+ )
+
@abc.abstractmethod
def human_readable(self):
"""Return a basic human readable version of the data."""