let arr = [12,15,44,1111,5,9,45,0,-1]
for(let i =0;i<arr.length-1;i++) {
for(let j=0;j<arr.length-i;j++) {
if(arr[j-1]>arr[j]) {
let sub = arr[j-1]
arr[j-1] = arr[j]
arr[j] = sub
}
}
}
console.log(arr)