flash Q
flash Q
Out of context: Reply #11
- Started
- Last post
- 12 Responses
- pixelbreaker0
function bubbleSort(a, b) {
var name1 = a;
var name2 = b;
if(name1 < name2){
return -1;
}else if(name1 > name2){
return 1;
}else{
return 0;
}
}/*
arrayName.sort(bubbleSort);
*/