const bubbleSort = (arr) => {
let sorted = false;
while (!sorted) {
sorted = true;
for (let i = 0; i < arr.length - 1; i++) {
// compare arr[i] to arr[i+1]
// swap places if needed
// if swapped, set sorted = false to run while loop again
}
}
return arr;
};