Quantcast
Channel: User Bazinga - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Datatable js sorting not working properly

$
0
0

As you can see in the screenshot below, the sorting is not working properly.

The Usage column is working because of using file-size plugin. the Registered Users and Not-Registered is not sorting properly because there is no plugin for numeric with a percentage sorting that's what I think, so I tried the aoColumns with stype attr of numeric but the sorting seems to be worsened.

enter image description here

Code used:

$("#myDatatable").DataTable({"searching": false,  columnDefs: [{    targets: "datatable-nosort",    orderable: false  }]});

Expected results should be when I sorted Registered Users is:

Registered Users    Not-Registered13.0(87.0%)         2.0(50.0%)2.0 (100.0%)        2.0(100%)

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>