<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
let sort=[20,6,19,1,3,88];
console.log('原始数据'+sort);
for (let i = 0; i<sort.length-1; i++){
for (let j = 0; j<sort.length-1-i; j++){
if (sort[j] < sort[j+1]){
a = sort[j];
sort[j] = sort[j+1];
sort[j+1] = a;
}
}
}
console.log('最终排序'+sort)
</script>
</body>
</html>