merge from Evolvis: add arbitrary sorting value attribute feature
revno: 9827.53.48
committer: Thorsten Glaser <t.glaser@tarent.de>
branch nick: small-fixes
timestamp: Wed 2012-03-14 18:25:02 +0100
message:
if a node (table cell) has an attribute "content" take that ipv. its innerText
the "content" attribute is provided by the RDFa DTD, we misappropriate it
here to allow sorting by arbitrary values instead of the innerText
This makes things possible like:
<tr><th>Foo</th></tr>
<tr><td content="bar"><a href="99">bar</a></td></tr>
<tr><td content="baz"><a href="100">baz</a></td></tr>
This will now sort on the string 'bar' instead of on the
string '<a href="99">bar</a>'.