sort goes across windows (eventually windows should instead share data)