Otherwise , if b >= a
else { let temp1 = [ ] ; temp1 . push ( a ) ; for ( let i = 0 ; i < bs . length ; i ++ ) temp1 . push ( bs [ i ] ) ; let v = bubble_sort ( temp1 ) ; v . unshift ( b ) ; res = v ; }