{% if not col.unwrap %}<td{% if not col or col.html != None and not col.html %} class="null-entry"{% endif %}>{% endif %}
    {% if col.html != None %}{{ col.html|safe }}{% else %}{{ col|safe }}{% endif %}
    <span title="{% if col.sort_key != "" %}{{ col.sort_key }}{% else %}{{ col }}{% endif %}"></span>
{% if not col.unwrap %}</td>{% endif %}

{% if not col.unwrap %}<td{% if not col or col.html != None and not col.html %} class="null-entry"{% endif %}>{% endif %}
    <span title="{% if col.sort_key != "" %}{{ col.sort_key }}{% else %}{{ col }}{% endif %}"></span>
    {% if col.html != None %}{{ col.html|safe }}{% else %}{{ col|safe }}{% endif %}
{% if not col.unwrap %}</td>{% endif %}

Make the sort_key the first title in <td/>
Make the sort_key the first title in <td/>

If you have an element with title elements in it, it screws with the
sorting logic, which appears to take the first title attr in the <td/>
I figured this out basically by trial and error -_-
