Fix Array#sort() call in reorientPath(path) for IE.

IE expects integer values in the compare function, not boolean. Closes #350 again.