alpha sorting not complete

alpha sorting not complete

PandyonPandyon Posts: 1Questions: 0Answers: 0
edited September 2010 in General
I default to alpha sorting on my first column, but it seems to only sort on the first letter of a word, not beyond that.

Please see: http://www.tcg.org/about/membership/IM_ticketdiscount.cfm as an example.

sorting code in javascript reads: "aaSorting": [[0,'asc']]

What's interesting is that it does seem to check more letters if I sort by State. Just the first column not working completely. Searched the forums for an answer but couldn't find it.

Mark

Replies

  • allanallan Posts: 63,400Questions: 1Answers: 10,452 Site admin
    Looks like you are currently using DataTables 1.7 beta 2. Try upgrading to 1.7.1. The problem is that it is not detecting the HTML type and is therefore sorting on your tag as well as the information. So the sort order is more determined by your URL, than the string. I introduced automatic HTML type detection later on in the beta series - so using 1.7.1 should do the trick.

    Allan
This discussion has been closed.