Sorting data help

Sorting data help

draginxdraginx Posts: 3Questions: 0Answers: 0
edited January 2011 in General
Essentially, I have a table with 10 columns but I only need this to be applied to one column...

In the cell I have this HTML

[code][tag] Name[/code]

Basically, I want tableData to only sort through the text that appears in is this possible? I tried looking through

http://datatables.net/examples/plug-ins/dom_sort.html and
http://datatables.net/development/sorting#data_source

but it just made things even more confusing. Any help?

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    A custom sorting function to find the data you want will be needed:

    http://datatables.net/examples/plug-ins/sorting_plugin.html
    http://datatables.net/development/sorting
    http://datatables.net/plug-ins/sorting

    Allan
  • draginxdraginx Posts: 3Questions: 0Answers: 0
    Thanks for your help! :) And thanks for creating an awesome table sorter plugin (at least this one is maintained unlike tablesorter) only thing I wish is for a dataTable-lite version (just custom sorting operations and default numeric/string/date sorting and that's it). Enjoy the beer ;)
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Thanks I will :-)

    A DataTables Lite is certainly something I've thought about and might do in future. Older versions are available which basically provide those functions (those key elements have been in from 1.0) - everything since then has been trying to make manipulation of it easier and more flexible!

    Regards,
    Allan
  • draginxdraginx Posts: 3Questions: 0Answers: 0
    edited January 2011
    Disregard please.
This discussion has been closed.