//sorting for grades$(function(){$.tablesorter.addParser({id:'grades',is:function(){returnfalse;// do not auto-detect this parser},format:function(s){vargrades=['A++','A+','A','B++','B+','B','C++','C+','C','A--','A-','B--','B-','C--','C-','NA'],index=grades.indexOf(s.toUpperCase());returnindex>-1?index:s;},type:'numeric'});$('#datatable').tablesorter({headers:{6:{sorter:"grades"}}});});
Table is now getting sorted as expected :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks @rhymes & Ben.
After lots of research, I came across:
github.com/Mottie/tablesorter/issu...,
and used it like this:
Table is now getting sorted as expected :)