public function sort()
    {
        return function (\SplFileInfo $a, \SplFileInfo $b) {
            preg_match(self::PATTERN, $a->getFileName(), $version_a);
            preg_match(self::PATTERN, $b->getFileName(), $version_b);
            return ((int)$version_a[1] < (int)$version_b[1]) ? -1 : 1;
        };
    }
public function sort()
    {
        return function (\SplFileInfo $a, \SplFileInfo $b) {
            preg_match(self::PATTERN, $a->getFileName(), $version_a);
            preg_match(self::PATTERN, $b->getFileName(), $version_b);
            return ((int)$version_a[1] < (int)$version_b[1]) ? -1 : 1;
        };
    }
public function sort ( ) { return function ( \ SplFileInfo $ a , \ SplFileInfo $ b ) { preg_match ( self :: PATTERN , $ a -> getFileName ( ) , $ version_a ) ; preg_match ( self :: PATTERN , $ b -> getFileName ( ) , $ version_b ) ; return ( ( int ) $ version_a [ 1 ] < ( int ) $ version_b [ 1 ] ) ? - 1 : 1 ; } ; }
sort closure for Finder
@return callable sort closure for Finder
sort closure for Finder