{"size": 233, "ext": "js", "max_stars_repo_path": "4.insertion_sort/insertion_sort.js", "max_stars_repo_name": "Sudhir-Kumar-K/algo-world", "max_stars_repo_stars_event_min_datetime": "2019-08-04T15:59:06.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-04T18:14:22.000Z", "max_issues_repo_path": "4.insertion_sort/insertion_sort.js", "max_issues_repo_name": "Sudhir-Kumar-K/algo-world", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "4.insertion_sort/insertion_sort.js", "max_forks_repo_name": "Sudhir-Kumar-K/algo-world", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 6, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.6428571429, "max_line_length": 40, "alphanum_fraction": 0.3690987124}
let a = [19, 25, -9, 29, 0, 25, 15, -9];
let temp, j;
for (let i = 1; i < a.length; i++) {
    temp = a[i];
    j = i - 1;
    while (a[j] > temp) {
        a[j + 1] = a[j];
        j--;
    }
    a[j + 1] = temp;

}

console.log(a);