original_string: protected function sortFilters()
      {
          usort($this->filters, function (FilterInterface $a, FilterInterface $b) {
              $a = $a->getPriority();
              $b = $b->getPriority();
  
              if ($a == $b) {
                  return 0;
              }
  
              return $a < $b ? -1 : 1;
          });
  
          $this->sorted = true;
      }
code: protected function sortFilters()
      {
          usort($this->filters, function (FilterInterface $a, FilterInterface $b) {
              $a = $a->getPriority();
              $b = $b->getPriority();
  
              if ($a == $b) {
                  return 0;
              }
  
              return $a < $b ? -1 : 1;
          });
  
          $this->sorted = true;
      }
code_tokens: protected function sortFilters ( ) { usort ( $ this -> filters , function ( FilterInterface $ a , FilterInterface $ b ) { $ a = $ a -> getPriority ( ) ; $ b = $ b -> getPriority ( ) ; if ( $ a == $ b ) { return 0 ; } return $ a < $ b ? - 1 : 1 ; } ) ; $ this -> sorted = true ; }
docstring: Sort filters by priority.
docstring_tokens: Sort filters by priority .