关于数组的排序
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Array对象 </title>
<script type="text/javascript">
function sortNum(a,b) {
}
var myarr = new Array("80","16","50","6","100","1");
document.write();
</script>
</head>
<body>
</body>
</html>
这个数组依次进来以后,有正负值。但是正负也有大小,他怎么实现把全部的都按从小到大的顺序排列啊 ?每个东西都要比一次,然后在用得出的结果在比吗?