wrong row ordering

wrong row ordering

xWesticexWestice Posts: 1Questions: 1Answers: 0
edited March 2022 in RowReorder

Link to test case:

**    $('#export').DataTable( {
        //scrollY: 600,
        //paging: false,
        "pageLength": 100,
        buttons: ['copy', 
            extend: 'excelHtml5',
            title: "<? echo $header; ?>"
            extend: 'csvHtml5',
            title: "<? echo $header; ?>"
            'print', {text: "email",
        action: function (e ,dt, node, config){
          location.href = "javascript:mailPage('inbound.html')";
        }} ],**: 

Hello guys my problem is I have a column in mysql when I get the variables and print with echo its 1 2 3 ... but them in a table its coming with wrong order its must be 1 2 3 ... but its 1 10 9 8 ... anyone can help me ? sorry for bad english:

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.


  • colincolin Posts: 15,208Questions: 1Answers: 2,592

    That's string sorting - so you've probably got a string value in the data for that column. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.



Sign In or Register to comment.