Fix get_sort_field
Fix print_ to rawsql
fix comment