public function toArray(): array
    {
        $sortedArrayKeys = $this->getSortedKeys();

        $sortedArray = [];
        foreach ($sortedArrayKeys as $key) {
            $sortedArray[$key] = $this->subject[$key];
        }
        return $sortedArray;
    }