I have tried getting javascript from a google search but all I come up with is to change a zero to a one. I can't find any place to do that. Do you have any other ideas?
Instead of explaining your problem further in the javascript forum on this site, you are making it more difficult to understand. I thought you wanted to do a sort by function with javascript and now you are talking about changing a zero to a one...