<script type="text/javascript">
var myArr = new Array();
myArr[0] =73
myArr[1] =299
myArr[2] =36
document.write(myArr.sort(function(a,b){return a-b}))
</script>
sort()是按照编码排序
<script type="text/javascript">
var myArr = new Array();
myArr[0] =73
myArr[1] =299
myArr[2] =36
document.write(myArr.sort(function(a,b){return a-b}))
</script>