<html> <body> <button onclick="var myA = new Array(1,15,13,11,2,4,16); myA.sort(); alert(myA);"> Array sort </button> </body> </html>