Javascript Appending Elements In Ascending Order From Its Array Value

Javascript Appending Elements In Ascending Order From Its Array Value