src/Parser/StoryMetrics.php
private function getStoriesSortedByName(): array
    {
        $stories = $this->stories;
        \usort($stories, function(Story $storyA, Story $storyB) {
            return $storyA->getName() <=> $storyB->getName();
        });

        return $stories;
    }
private function getStoriesSortedByName(): array
    {
        $stories = $this->stories;
        \usort($stories, function(Story $storyA, Story $storyB) {
            return $storyA->getName() <=> $storyB->getName();
        });

        return $stories;
    }
private function getStoriesSortedByName ( ) : array { $ stories = $ this -> stories ; \ usort ( $ stories , function ( Story $ storyA , Story $ storyB ) { return $ storyA -> getName ( ) <=> $ storyB -> getName ( ) ; } ) ; return $ stories ; }
Sort stories by name

@return array
Sort stories by name