rem: this.element.sort(function (a,b) {return a.sourceIndex - b.sourceIndex}); 
add: element.sort(function (a,b) {return a.sourceIndex - b.sourceIndex}); 
context:   GetMathElements: function () {    var math = document.getElementsByTagName('DIV');    for (var k = 0; k < math.length; k++) {      if (math[k].className == 'math') {        if (jsMath.renameOK) {math[k].setAttribute('NAME','jsMath')}          else {this.element[this.element.length] = math[k]}      }    }    math = document.getElementsByTagName('SPAN');    for (var k = 0; k < math.length; k++) {      if (math[k].className == 'math') {        if (jsMath.renameOK) {math[k].setAttribute('NAME','jsMath')}          else {this.element[this.element.length] = math[k]}      }    }    // this gets the SPAN and DIV elements interleaved in order    if (jsMath.renameOK) {      this.element = document.getElementsByName('jsMath')    } else if (jsMath.hidden.sourceIndex) {      this.element.sort(function (a,b) {return a.sourceIndex - b.sourceIndex});    }  },
meta: 7708	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7708/7e14bd6371184e228059224a2eeb22a9981eb9f9/jsMath.js/buggy/htdocs/jsMath/jsMath.js