Soure Code
// Bubble Sort
const list =[13,552,78,43,2,8753,897,887,6345,612,900,34,2,57,800,89]
console.log(list)
const bubbleSort = (items) => {
for(let i=0; i<items.length;i++){
for(let j=i; j<items.length;j++){
if(items[i]>items[j]){
items[i]=items[i]^items[j]
items[j]=items[i]^items[j]
items[i]=items[i]^items[j]
}
}
}
return items
}
const s = bubbleSort(list)
console.log(s)