Sort string nd number as numer

Sort string nd number as numer

pippuccio76pippuccio76 Posts: 19Questions: 10Answers: 0

HI i have this data :

https://jsfiddle.net/9j4y3rpb/

how can i sort this data ?

Answers

  • kthorngrenkthorngren Posts: 19,138Questions: 26Answers: 4,536

    Try the Natural sorting plugin.

    Kevin

  • pippuccio76pippuccio76 Posts: 19Questions: 10Answers: 0
  • pippuccio76pippuccio76 Posts: 19Questions: 10Answers: 0
    edited May 23

    is it possyble get data as query ? because the list of data from db is correctly order but datatable set data ordered (bad)

  • allanallan Posts: 59,799Questions: 1Answers: 9,682 Site admin

    Yes, you can use server-side processing.

    However, I was curious about why the natural sorting plug-in didn't work, as I expected it to do so, and it turns out there is an error in it that I made during a recent refactoring - sorry! I've committed a fix, however, to see it in action I've put it into this updated example.

    Allan

  • pippuccio76pippuccio76 Posts: 19Questions: 10Answers: 0
    edited May 30

    is cdn update ? because i have same problem ...

  • allanallan Posts: 59,799Questions: 1Answers: 9,682 Site admin

    No - this hasn't been released yet. You'd need to use the code from Github if you want remote hosting for it, or host it locally ifyou can.

    Allan

Sign In or Register to comment.