TopSort tweak