original_string: 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]);
              }
          }
      }
code: 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]);
              }
          }
      }
code_tokens: 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 ] ) ; } } }
docstring: Sort the composer.json properties.
  
  @return void
docstring_tokens: Sort the composer . json properties .