Fixes window.orderedwindows(); closes #207.