def th_sortable(current_order, column_order, label, url,
    class_if_sort_column="sort", class_if_not_sort_column=None, 
    link_attrs=None, name="th", **attrs):
    from webhelpers2.html import HTML
    if current_order == column_order:
        content = label
        class_ = class_if_sort_column
    else:
        link_attrs = link_attrs or {}
        content = HTML.tag("a", label, href=url, **link_attrs)
        class_ = class_if_not_sort_column
    return HTML.tag("th", content, class_=class_, **attrs)



########## Other non-form tags ##########
Baidu.reverse Point
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/html/tags.py/th_sortable--crossover with--dataset/ETHPy150Open geopy/geopy/test/geocoders/baidu.py/BaiduTestCase.test_reverse_point