original_string: public function indexAction($postid)
      {
          $post = $this->getPost($postid);
  
          $entities = $post->getComments()->toArray();
          usort($entities, function (Comment $a, Comment $b) {
              return $a->getDateCreated() < $b->getDateCreated();
          });
  
          return array(
              'post'     => $post,
              'entities' => $entities,
          );
      }
code: public function indexAction($postid)
      {
          $post = $this->getPost($postid);
  
          $entities = $post->getComments()->toArray();
          usort($entities, function (Comment $a, Comment $b) {
              return $a->getDateCreated() < $b->getDateCreated();
          });
  
          return array(
              'post'     => $post,
              'entities' => $entities,
          );
      }
code_tokens: public function indexAction ( $ postid ) { $ post = $ this -> getPost ( $ postid ) ; $ entities = $ post -> getComments ( ) -> toArray ( ) ; usort ( $ entities , function ( Comment $ a , Comment $ b ) { return $ a -> getDateCreated ( ) < $ b -> getDateCreated ( ) ; } ) ; return array ( 'post' => $ post , 'entities' => $ entities , ) ; }
docstring: Lists all of a post's comments.
  
  @Route("s", name="post_comments")
  @Template()
docstring_tokens: Lists all of a post s comments .