Merge pull request from kamino/master

policyrep: sort categories using their index
This commit is contained in:
Chris PeBenito 2015-12-07 08:09:07 -05:00
commit fd5151a4bd

View File

@ -244,6 +244,10 @@ class Category(BaseMLSComponent):
stmt += ";"
return stmt
def __lt__(self, other):
"""Comparison based on their index instead of their names."""
return self._value < other._value
class Sensitivity(BaseMLSComponent):