public function toArray()
    {
        if (!$this->sorted) {
            $this->rewind();
        }
        return array_map(
            function ($entry) {
                return $entry['data'];
            }, $this->entries
        );
    }
public function toArray()
    {
        if (!$this->sorted) {
            $this->rewind();
        }
        return array_map(
            function ($entry) {
                return $entry['data'];
            }, $this->entries
        );
    }
public function toArray ( ) { if ( ! $ this -> sorted ) { $ this -> rewind ( ) ; } return array_map ( function ( $ entry ) { return $ entry [ 'data' ] ; } , $ this -> entries ) ; }
Returns all items, ordered by priority.
@return array
Returns all items ordered by priority .