SyntaxFix
Write A Post
Hire A Developer
Questions
try this:
a = new Array(); a.push(10); a.push(60); a.push(20); a.push(30); a.push(100); a.sort(Test) document.write(a); function Test(a,b) { return a > b ? true : false; }