jquery/sizzle — pull request #85 by shorinji (2011-11-23 13:17:13+00:00)
Title: sortOrder optimization for IE8+

Current sortOrder implementation runs slowly on IE8. This patch checks for the availability of the contains() method natively implemented in IE to get better performance.
Patch contains code by john resig implementing function comparePosition