//方法1冒泡排序
var mySort = function(fn){
if(typeof fn != 'function'){
fn = function(a,b){
return a-b;
}
}
for(var i=0; i < this.length-1;i++){
for(var j=i+1;j<this.length;j++){
var t = this[i];
if(fn(this[i],this[j]) > 0){
this[i] = this[j];
this[j] = t;