Support » Plugin: AJ CSV to DataTable » Add Default Sorting Per Column

  • Your plugin is cool. Maybe I will add this feature myself, or have my team do it. I wanted to submit this request so I don’t forget about it.

    I would like the ability to add a column’s default sort in the shortcode. It is clear what should happen when a single column is specified as sort. That column should be sorted.

    It is less clear as to what happens when multiple columns would be specified as sort. It looks like dataTables supports multiple sorts – https://datatables.net/examples/basic_init/multi_col_sort.html . I’m not sure I understand their example, but I think they’d support first column sort, then progress sorting through the next sorts. I would do this in a left-to-right parsing of arguments to the shortcode, or a sortBy parameter which is a list of arguments to sort by.

    For my purposes, first column sort is all I need. I’m simulating this through jQuery clicking on the column I want sorted by. This is sort of ghetto though.

    Thanks again for writing this. It’s simple and easy to use. It’s helping one of my customers display CSV data inside their page.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author anjanasilva

    (@anjanasilva)

    Hello @brianstinar,

    Firstly, I would like to thank you for your feedback.

    This is indeed a cool feature to have. I will consider this in the next update.

    Thank you very much,
    Anjana

Viewing 1 replies (of 1 total)
  • The topic ‘Add Default Sorting Per Column’ is closed to new replies.