get_sort_info
const struct sort_info *get_sort_info(const char *name);
if ((new_sort_info = get_sort_info(tempbuf2)) == NULL)
if ((sort_info = get_sort_info(order_name)) == NULL) {
sort_info = get_sort_info(NULL);