Driver program
let arr = [ 8 , 4 , 1 , 56 , 3 , - 44 , 23 , - 6 , 28 , 0 ] ; sort ( arr ) ; document . write ( " " + " " ) ; for ( let i = 0 ; i < arr . length ; ++ i ) document . write ( arr [ i ] + " " ) ;