2

I figured out that when i'm using the multiple column sort function of the plugin. The first row gets sorted properly and the second row items where the first row items are the same are getting sorted.

I have two columns with percentages in it and would like to sort them from the highest added score (from the sum of both columns) to the lowest.

So: 0.9 | 0.2    Rather then: 0.9 | 0.2
    0.6 | 0.4                 0.7 | 0.1
    0.6 | 0.3                 0.6 | 0.4
    0.7 | 0.1                 0.6 | 0.3
    0.3 | 0.4                 0.3 | 0.4

Is this behaviour possible within jquery-tablesorter?

2
  • I don't think there is an easy way to do this... you might end up needing to write a custom sorting script. But I won't give in, I'll see what I can come up with for you :) Commented Apr 26, 2013 at 23:46
  • I would be fine with writing a custom sorting script, but I don't know where to hook in. Commented May 3, 2013 at 9:28

1 Answer 1

0

I guess I'm switching to the jQuery DataTables Plugin. It allows to define own sorting functions and other fancy stuff.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.