src/Installer.php
private function sortRules(&$rules)
    {
        sort($rules);
        usort($rules, function ($a, $b) {
            return strlen($a) - strlen($b);
        });
    }
private function sortRules(&$rules)
    {
        sort($rules);
        usort($rules, function ($a, $b) {
            return strlen($a) - strlen($b);
        });
    }
private function sortRules ( & $ rules ) { sort ( $ rules ) ; usort ( $ rules , function ( $ a , $ b ) { return strlen ( $ a ) - strlen ( $ b ) ; } ) ; }
Sort gitignore rules.

@param  array  &$rules
@return void
Sort gitignore rules .