JavaScript冒泡法排序

冒泡排序:一般而言,若要排序N项,那么最多需要遍历N-1次,每次遍历需要比较N-1次。

示例:

原文地址:https://www.cnblogs.com/sunshine-boys/p/5924795.html