摘要:
function sort(arr){
if(arr.length<=1){
return arr;
}
var num = Math.floor(arr.length/2);
var numValue = arr.splice(num,1);
var left = [];
var right = [];
for(var i = 0; i < arr.length; i++){
if(arr[i] 阅读全文
![](http://images.cnblogs.com/cnblogs_com/tnnyang/628190/o_12.jpg)