push sorted keys out of scope