sorting problems when using 'title' attribute in links

sorting problems when using 'title' attribute in links

karmapolitickarmapolitic Posts: 3Questions: 0Answers: 0
edited April 2011 in Bug reports
hey there!
- using the latest release of datatables
- table is generated with php/mysql
- the problem column is all links
- sorts properly before i add a 'title' attribute

- sorting acts with no rhyme nor reason as far as i can tell once i add the title (doesn't seem to be sorting alphabetically by the title or anything of the sort - just really random sorting it seems). i'd like it to sort based only on the visible text in between the and tags without regard to the text in the link title.


right now the only control i'm executing over the columns is whether they are sortable or not. is there a simple fix (like defining an explicit sType) that will solve this issue?

Replies

  • karmapolitickarmapolitic Posts: 3Questions: 0Answers: 0
    edited April 2011
    here's a slice of the html that the php generates:


    LF00031
    Camera
    IUYTREWQ





    LF00030
    Book
    asfdasdf





    LF00026
    Other
    Water bottle





    LF00027
    Other
    Water bottle





    LF00023
    Book
    ugly heavy book




    LF00022
    iPod/MP3 Player
    apple ipod 160gb black
  • karmapolitickarmapolitic Posts: 3Questions: 0Answers: 0
    it is a dynamic property database and pulls both the link text, the title, and the ticket numbers from an sql database.

    the table just displays the link text (a short description) whereas the title attribute contains a detailed description of the property that is displayed in a jquery tooltip popup upon rollover. the link itself points to a 'view item' page where it displays all of the associated data from the sql record.
This discussion has been closed.