Sorting Links

Sorting Links

neburtonneburton Posts: 63Questions: 6Answers: 0
edited September 2009 in General
The json data for my table contains a list of names that link to another page on our site.

Because there is a unique id in the rel attribute and in the href, it doesn't sort on the name but the html as a whole.

[code]
Firstname Lastname
Firstname Lastname 2
Firstname Lastname 3
[/code]

Is there a way around this? Thanks.

Replies

  • allanallan Posts: 61,831Questions: 1Answers: 10,132 Site admin
    Hi,

    Yes indeed, just set the sType for that column to 'html': http://datatables.net/examples/advanced_init/html_sort.html

    Regards,
    Allan
This discussion has been closed.