src/Project.php
public function getSortedRefs()
    {
        $versions = $this->versions;

        usort($versions, function (version $v1, version $v2) {


            return version::gt($v1, $v2) ? -1 : 1;
        });

        $versions = array_map(function (version $v) {


            return $v->getVersion();
        }, $versions);

        return array_merge($this->branches, $versions);
    }
public function getSortedRefs()
    {
        $versions = $this->versions;

        usort($versions, function (version $v1, version $v2) {


            return version::gt($v1, $v2) ? -1 : 1;
        });

        $versions = array_map(function (version $v) {


            return $v->getVersion();
        }, $versions);

        return array_merge($this->branches, $versions);
    }
public function getSortedRefs ( ) { $ versions = $ this -> versions ; usort ( $ versions , function ( version $ v1 , version $ v2 ) { return version :: gt ( $ v1 , $ v2 ) ? - 1 : 1 ; } ) ; $ versions = array_map ( function ( version $ v ) { return $ v -> getVersion ( ) ; } , $ versions ) ; return array_merge ( $ this -> branches , $ versions ) ; }
Get refs sorted by the configured order.

@return array
Get refs sorted by the configured order .