var arrs = [8,19,26,4,9,0,38,10,88,7]; console.log(arrs.sort(CB)) function CB(v1,v2){ if(v1>v2){ return 1; }else{ return 0; } }
var arrs = [8,19,26,4,9,0,38,10,88,7]; console.log(arrs.sort(CB)) function CB(v1,v2){ if(v1>v2){ return 1; }else{ return 0; } }