开发者

Is it possible to overide the sort function in the jQuery tablesorter?

I'm currently using tablesorter to sort a set of graphs. I achieve this by using a hidden text to embed the "number" the graph contents represent. The textExtraction routine then pulls the number out for sorting.

However the graphs are actually for two separate things, lets call them A & B where a B node is a child of one of the A nodes. So what I really want is to sort unrelated B nodes with respect to their parents number unless they are being sorted to a sibling B node. This would maintain the relationship between the parent nodes and the siblings among开发者_开发知识库st themselves. For example:

A1 (100)
B2  (25)
B3  (10)
A2 (50)
B1 (25)
B4 (5)

Where B2&B3 are parents of A1 and B1 & B4 are parents of A2

Is there anyway I can override the sort method to do this complex thing?


In short, the answer is no.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜