Implementing Sorting functionality of Jquery Datatable to a different row other than last default

Implementing Sorting functionality of Jquery Datatable to a different row other than last default

vibs2006vibs2006 Posts: 2Questions: 1Answers: 0
edited June 2017 in Free community support

I have a table (Fiddle url is http://live.datatables.net/yiriwoco/1/) in which I want to implement the sorting functionality to the Second Header Row as compared to the Last Header Row (See the attached snapshot).

Snapshot

My Question is that is there any way to achieve this? I have already search Datatable Forums but was unable to find its answer.

Answers

  • vibs2006vibs2006 Posts: 2Questions: 1Answers: 0
    edited June 2017

    @allan
    I did solved it by applying following property.

        "orderCellsTop": true
    

    However there is one more complex requirement as mentioned in this fiddle.

    According to this new problem now I would like to sort the columns using nth Header Row (its actually 3rd row but its a 2nd row without colspan in this comment's fiddle) as shown in the snapshot below.

    New Requirement

This discussion has been closed.