public function ksort(int $sort_flags = 0): self
    {
        $this->generatorToArray();

        \ksort($this->array, $sort_flags);

        return $this;
    }
public function ksort(int $sort_flags = 0): self
    {
        $this->generatorToArray();

        \ksort($this->array, $sort_flags);

        return $this;
    }
public function ksort ( int $ sort_flags = 0 ) : self { $ this -> generatorToArray ( ) ; \ ksort ( $ this -> array , $ sort_flags ) ; return $ this ; }
Sort the entries by key

@param int $sort_flags [optional] <p>
You may modify the behavior of the sort using the optional
parameter sort_flags, for details
see sort.
</p>

@return static
<p>(Mutable) Return this Arrayy object.</p>
Sort the entries by key