code: def sort(self, cmp=None, key=None, reverse=False):
          
          if not key and self._keys:
              key = self.KeyValue
          super(CliTable, self).sort(cmp=cmp, key=key, reverse=reverse)
docs: Overrides sort func to use the KeyValue for the key.