Fix hashsort with sort block

Fixed a bug hashsort with sort block doesn't work properly.