public function sortKeys($direction = \SORT_ASC, int $strategy = \SORT_REGULAR): self
    {
        $this->generatorToArray();

        $this->sorterKeys($this->array, $direction, $strategy);

        return $this;
    }
public function sortKeys($direction = \SORT_ASC, int $strategy = \SORT_REGULAR): self
    {
        $this->generatorToArray();

        $this->sorterKeys($this->array, $direction, $strategy);

        return $this;
    }
public function sortKeys ( $ direction = \ SORT_ASC , int $ strategy = \ SORT_REGULAR ) : self { $ this -> generatorToArray ( ) ; $ this -> sorterKeys ( $ this -> array , $ direction , $ strategy ) ; return $ this ; }
Sort the current array by key.

@see http://php.net/manual/en/function.ksort.php
@see http://php.net/manual/en/function.krsort.php

@param int|string $direction <p>use <strong>SORT_ASC</strong> (default) or <strong>SORT_DESC</strong></p>
@param int        $strategy  <p>use e.g.: <strong>SORT_REGULAR</strong> (default) or
<strong>SORT_NATURAL</strong></p>

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