public function sort(callable $callback = null)
    {
        $items = $this->getArrayCopy();
        $callback ? uasort($items, $callback) : asort($items);
        return new static($items);
    }
public function sort(callable $callback = null)
    {
        $items = $this->getArrayCopy();
        $callback ? uasort($items, $callback) : asort($items);
        return new static($items);
    }
public function sort ( callable $ callback = null ) { $ items = $ this -> getArrayCopy ( ) ; $ callback ? uasort ( $ items , $ callback ) : asort ( $ items ) ; return new static ( $ items ) ; }
how to reset array keys here?
as when jsonencoded the keys must be reset
not sure you would always want to reset as may need
to maintain sometimes?
how to reset array keys here? as when jsonencoded the keys must be reset not sure you would always want to reset as may need to maintain sometimes?