src/ComposerConfigurator.php
protected function sortProperties()
    {
        if (! $this->json) {
            $this->readJson();
        }
        
        $this->json = $this->sortByArray($this->json, $this->composerOrder);
        
        if (isset($this->json['autoload'])) {
            $this->json['autoload'] = $this->sortByArray($this->json['autoload'], $this->autoloadOrder);
        }
        
        if (isset($this->json['autoload-dev'])) {
            $this->json['autoload-dev'] = $this->sortByArray($this->json['autoload-dev'], $this->autoloadOrder);
        }
        
        foreach (['support', 'require', 'require-dev', 'conflict', 'replace', 'provide', 'suggest'] as $property) {
            if (isset($this->json[$property])) {
                ksort($this->json[$property]);
            }
        }
    }
protected function sortProperties()
    {
        if (! $this->json) {
            $this->readJson();
        }
        
        $this->json = $this->sortByArray($this->json, $this->composerOrder);
        
        if (isset($this->json['autoload'])) {
            $this->json['autoload'] = $this->sortByArray($this->json['autoload'], $this->autoloadOrder);
        }
        
        if (isset($this->json['autoload-dev'])) {
            $this->json['autoload-dev'] = $this->sortByArray($this->json['autoload-dev'], $this->autoloadOrder);
        }
        
        foreach (['support', 'require', 'require-dev', 'conflict', 'replace', 'provide', 'suggest'] as $property) {
            if (isset($this->json[$property])) {
                ksort($this->json[$property]);
            }
        }
    }
protected function sortProperties ( ) { if ( ! $ this -> json ) { $ this -> readJson ( ) ; } $ this -> json = $ this -> sortByArray ( $ this -> json , $ this -> composerOrder ) ; if ( isset ( $ this -> json [ 'autoload' ] ) ) { $ this -> json [ 'autoload' ] = $ this -> sortByArray ( $ this -> json [ 'autoload' ] , $ this -> autoloadOrder ) ; } if ( isset ( $ this -> json [ 'autoload-dev' ] ) ) { $ this -> json [ 'autoload-dev' ] = $ this -> sortByArray ( $ this -> json [ 'autoload-dev' ] , $ this -> autoloadOrder ) ; } foreach ( [ 'support' , 'require' , 'require-dev' , 'conflict' , 'replace' , 'provide' , 'suggest' ] as $ property ) { if ( isset ( $ this -> json [ $ property ] ) ) { ksort ( $ this -> json [ $ property ] ) ; } } }
Sort the composer.json properties.

@return void
Sort the composer . json properties .