I had a javascript code to generate values for a table in HTML after sorting the values. At first I manually entered the array of values at the start of the javascript code. It was like: names=[tom,jerry,mickey,mouse]; grades=[10,20,30,40]; then sort them and write values in table. It worked perfect.I had a javascript code to generate values for