Write a JavaScript callback for the jQuery function
$(\"#sort\").click. Allow the user to enter three numbers in any order. Output the numbers in ord
This is also right, But Better you put all values into an array.
Get All element value and push value into an array,
Use array.sort();;
to Sort numbers (numerically and ascending):
arrayname.sort(function(a, b){return a-b});
to Sort numbers (numerically and descending):
arrayname.sort(function(a, b){return b-a});