code: def sort(self, ascending=True):
          from .sframe import SFrame as _SFrame
          if self.dtype not in (int, float, str, datetime.datetime):
              raise TypeError("Only sarray with type (int, float, str, datetime.datetime) can be sorted")
          sf = _SFrame()
          sf['a'] = self
          return sf.sort('a', ascending)['a']