{"size": 1286, "ext": "js", "max_stars_repo_path": "task.js", "max_stars_repo_name": "Droxt1/GIZ-pass-js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "task.js", "max_issues_repo_name": "Droxt1/GIZ-pass-js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "task.js", "max_forks_repo_name": "Droxt1/GIZ-pass-js", "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": 33.8421052632, "max_line_length": 97, "alphanum_fraction": 0.5847589425}
function Bubble_Sort(array) {
//This to keep the const array so the function
//cant not be mutated to get a pure function than does not change the parameters that we give it 
  const arr = array.slice();
  for (let i = 0 ; i < arr.length - 1 ; i++) {
    for(let j = 0 ; j < arr.length - 1 ; j++) {           
      if(arr[j] > arr[j + 1]){              
//Swap in a staylish way
        [arr[j], arr[j + 1]] = [arr[j+1], arr[j]];
      }
    }
  }
  return arr;
}
//The array of numbers
//Immutable!
const arr = [10,10,31,19,18,21,55,23,20,10,10,78,80,99,15];
//Displaying the original numbers
console.log("The original numbers: ",arr)
//A bubble sorting displaying
console.log("Numbers in bubble sorting",Bubble_Sort(arr));
function Bubble_Desc_Sort(array) {
  const arr = array.slice();
  for (let i = 0 ; i < arr.length - 1 ; i++) {
    for(let j = 0 ; j < arr.length - 1 ; j++) {           
//You can see the difference in the (<) sign      
      if(arr[j] < arr[j + 1]){              
//Swap in a staylish way gain!        
        [arr[j], arr[j + 1]] = [arr[j+1], arr[j]];
      }
    }
  }
  return arr;
}
//A desc sorting displaying
console.log("Numbers in desc bubble sorting",Bubble_Desc_Sort(arr));
//I highly recommend listen to Panit it,black by the rolling stones!!!!!
