Template:UCSF/TOC
From 2010.igem.org
(Difference between revisions)
Line 20: | Line 20: | ||
else if (testNode.compareDocumentPosition) { | else if (testNode.compareDocumentPosition) { | ||
resultArray.sort(function (a,b) { | resultArray.sort(function (a,b) { | ||
- | + | if(a.compareDocumentPosition(b)==4||a.compareDocumentPosition(b)==20){return -1;} | |
+ | else {return 1;} | ||
}); | }); | ||
} | } |
Latest revision as of 06:28, 30 September 2010