0

I have a table which is loading in AJAX, all the data are coming from server side when I click a button from client side. Now I need a sorting functionality in this html table. I have searched and found 5-6 javascript plugins for sorting, but none of them are working. Some are becoming very slow, and some are showing errors. My html table structure is also bit different. Can anyone please help me out to and provide a good js plugin to implement in my code. I am attaching an image of my table structure.

enter image description here

Basically the table has 2 header rows, I need the sorting functionality over the second header row.

If the image is not clear you can refer to this link. http://awesomescreenshot.com/0b72bfy588

3

3 Answers 3

0

Have you tried datatables?

http://datatables.net/release-datatables/examples/basic_init/multi_col_sort.html

Usage is simple

http://datatables.net/usage/

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

1 Comment

In order for DataTables to be able to function correctly, the HTML for the target table must be laid out in a well formed manner with the 'thead' and 'tbody' sections declared.
0
Use Google DataTable or Jquery Datatable, which priovides sorting.. rest you can customize

1 Comment

Storngly recommend to use Google Datatable.. easy and customizable
0

Have you tried this plugin for sorting your table?

$("#myTable").tablesorter();

http://tablesorter.com/docs/

1 Comment

I have already tried with tablesorter , not working for me with my table structure.

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.