servers side processing sorting not working

servers side processing sorting not working

jemzjemz Posts: 131Questions: 40Answers: 1
edited October 2014 in Free community support

I need some help please why I could not sort my column in server side processing ?..when I click my column example ID or any of my column it would not sort.the data will still remain.
please help me

Thank you in advance.

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
 
 
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/dataTables.bootstrap.css">
 
    <script src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
    <script type="text/javascript"  src="js/dataTablesBootstrap.js"></script>
 
 
 
    <script type="text/javascript" charset="utf-8">
 
 
        $(document).ready(function() {
 
                    $('#example').dataTable( {
                        "processing": true,
                        "serverSide": true,
                        "start": 0,
                        "ajax": {
                            url:"querydata2.php"
                        },
                        "columns": [
                            { "data": "id"},
                            { "data": "empno"},
                            { "data": "firstname"},
                            { "data": "lastname"}
 
                        ]
 
                    } );
 
        } );
 
 
 
 
    </script>
 
 
</head>
<body>
<div class="container">
    <table id="example" class="display" cellspacing="0" width="100%">
        <thead>
        <tr>
            <th>ID</th>
            <th>EMPNO</th>
            <th>FIRSTNAME</th>
            <th>LASTNAME</th>
 
        </tr>
        </thead>
 
 
    </table>
</div>
 
 
</body>
</html>

This discussion has been closed.