Fix hashsort with sort block
Note change from Koichi Nakashima

* Fix hashsort with sort block