{"size": 254, "ext": "js", "max_stars_repo_path": "02a. Arrays and Nested Arrays - Exercise/sortingBy2Criteria.js", "max_stars_repo_name": "viktor-velichkov/JS-Advanced-SoftUni", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "02a. Arrays and Nested Arrays - Exercise/sortingBy2Criteria.js", "max_issues_repo_name": "viktor-velichkov/JS-Advanced-SoftUni", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "02a. Arrays and Nested Arrays - Exercise/sortingBy2Criteria.js", "max_forks_repo_name": "viktor-velichkov/JS-Advanced-SoftUni", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.75, "max_line_length": 92, "alphanum_fraction": 0.5472440945}
function sort(array) {
    console.log(array
        .sort((a, b) => a.length - b.length != 0 ? a.length - b.length : a.localeCompare(b))
        .join('\n'));
}

sort(['alpha', 'beta', 'gamma']);
sort(['Isacc', 'Theodor', 'Jack', 'Harrison', 'George']);