Deprecating function select_and_sort_categories use select_ajax element see #6836