Revert "sorting with specified temporary directory"

This reverts commit f1a1a53afa21563241b39ae4c2a48d3e6740f205.