src/ClassGeneration/DocBlock/TagCollection.php
public function sortAsc()
    {
        $cmp = function (TagInterface $a, TagInterface $b) {
            if ($a->getName() == $b->getName()) {
                return 0;
            }

            return ($a->getName() < $b->getName()) ? -1 : 1;
        };
        usort($this->elements, $cmp);
    }
public function sortAsc()
    {
        $cmp = function (TagInterface $a, TagInterface $b) {
            if ($a->getName() == $b->getName()) {
                return 0;
            }

            return ($a->getName() < $b->getName()) ? -1 : 1;
        };
        usort($this->elements, $cmp);
    }
public function sortAsc ( ) { $ cmp = function ( TagInterface $ a , TagInterface $ b ) { if ( $ a -> getName ( ) == $ b -> getName ( ) ) { return 0 ; } return ( $ a -> getName ( ) < $ b -> getName ( ) ) ? - 1 : 1 ; } ; usort ( $ this -> elements , $ cmp ) ; }
Sort the list by elements.
@return void
Sort the list by elements .