code: public function sort(
          ?string $pattern = null,
          $limit = null,
          $patterns = null,
          ?bool $asc = null,
          $alpha = false,
          ?string $destination = null
      ) {
          if ($this instanceof RedisList || $this instanceof RedisSet || $this instanceof RedisSortedSet) {
              $ret = $this->redis->sort($this->key, $pattern, $limit, $patterns, $asc, $alpha, $destination);
  
              return \is_array($ret) ? $this->unSerializeArray($ret) : $ret;
          }
  
          return null;
      }
docs: Only works on lists, sets and sorted sets.
  SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern …]] [ASC|DESC] [ALPHA] [STORE destination]
  
  @param null|string          $pattern
  @param null|array|int       $limit
  @param null|string|string[] $patterns
  @param null|bool            $asc
  @param bool                 $alpha
  @param null|string          $destination
  
  @return array|int|null