Fixed sorting rules with equal priorities.
Documented IE's quirk.
Merge branch 't/9972' into major