code: def sort(self, key, *get_patterns,
               by=None, offset=None, count=None,
               asc=None, alpha=False, store=None):
          args = []
          if by is not None:
              args += [b'BY', by]
          if offset is not None and count is not None:
              args += [b'LIMIT', offset, count]
          if get_patterns:
              args += sum(([b'GET', pattern] for pattern in get_patterns), [])
          if asc is not None:
              args += [asc is True and b'ASC' or b'DESC']
          if alpha:
              args += [b'ALPHA']
          if store is not None:
              args += [b'STORE', store]
          return self.execute(b'SORT', key, *args)