public function toArray()
    {
        if (!$this->sorted) {
            $this->rewind();
        }
        return array_map(
            function ($entry) {
                return $entry['data'];
            }, $this->entries
        );
    }