use get_sorting_type instead of get_sorting_order