gitweb: add a "string" variant of print_sort_th