original_string: public function getSortedQuestions()
      {
          $criteria = Criteria::create();
          $criteria->orderBy(array('rank' => 'ASC'));
  
          return $this->getQuestions()->matching($criteria);
      }
code: public function getSortedQuestions()
      {
          $criteria = Criteria::create();
          $criteria->orderBy(array('rank' => 'ASC'));
  
          return $this->getQuestions()->matching($criteria);
      }
code_tokens: public function getSortedQuestions ( ) { $ criteria = Criteria :: create ( ) ; $ criteria -> orderBy ( array ( 'rank' => 'ASC' ) ) ; return $ this -> getQuestions ( ) -> matching ( $ criteria ) ; }
docstring: Get Sorted questions by Rank
  
  @return \Doctrine\Common\Collections\Collection
docstring_tokens: Get Sorted questions by Rank