Revert "added one way sort"

This reverts commit c92dd0654e8b843a51cb186e61ef5967c0e07cef.