Sort table data by tr id

Sort table data by tr id

davsevdavsev Posts: 5Questions: 3Answers: 0
edited March 2017 in Free community support

Hey all,
Is it possible to sort the table rows by their id?

this is the jsfiddle link

https://jsfiddle.net/davseveloff/dysottkb/

thank you!

Answers

  • jr42.gordonjr42.gordon Posts: 305Questions: 2Answers: 49
    edited March 2017

    i would suggest instead to add that to a column, either beginning or end, and hide the column. You can sort on this column with your initial DT config, but the user can override it afterwards by sorting on a column.

    If you utilize ColViz, you can do what I mentioned above and the user would have the ability to show this "ID" column and sort on it whenever they need to.

This discussion has been closed.