sortDivs($(scope + '_' + type + '_ws_list'), sortWsFilter); 
var parent = $(scope + '_' + type + '_ws_list'); var divs = new Array();  for (var i in parent.childNodes) { var child = parent.childNodes[i]; if (child.tagName == 'DIV' && scoreHash[child.id]) { divs.push(child); } }  divs.sort(sortWsFilter);  for (var i = 0; i < divs.length; i++) { parent.appendChild(divs[i]); }  
        function filterCallBack(filteredList) {            if (filteredList.length == 0) {                showAll();            } else {                var scoreHash = new Array();                for (var el in filteredList) {                    var wsName = filteredList[el][0];                    var wsScore = filteredList[el][1];                    scoreHash[scope + '_' + type + '_item_' + wsName] = wsScore;                }                for(var i=0; i<inputArray.length; i++) {                    if (inputArray[i].id.match(new RegExp('^' + scope + '_' + type + '_item'))) {                        if (scoreHash[inputArray[i].id]) {                            inputArray[i].style.display='block';                        } else {                            inputArray[i].style.display='none';                        }                    }                }                function sortWsFilter(line1, line2) {                    if (scoreHash[line1.id] > scoreHash[line2.id]) {                        return -1;                    } else {                        if (scoreHash[line1.id] < scoreHash[line2.id]) {                            return 1;                        } else {                            return 0;                        }                    }                }                sortDivs($(scope + '_' + type + '_ws_list'), sortWsFilter);                $(scope + '_' + type + '_spinner').style.visibility = 'hidden';            }        }
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/eaacbf832445afa08fa6e9973f13a52c7e39d66f/imdwr.js/clean/intermine/webapp/main/resources/webapp/js/imdwr.js