JQuery tablesorter: Modify how it sorts empty cells -


i have big table , want sort using tablesorter. problem i'm dealing tablesorter act 0 empty cells when sorting numbers. how can push empty cells bottom?

as example, tablesorter sorts that

-5 -4 -1 <empty cell> <empty cell> 6 7 15 23 

i want sort as

-5 -4 -1 6 7 15 23 <empty cell> <empty cell> 

you can specify own text extraction function:

 $(table).tablesorter({               textextraction: function (node)                       {              if (node.innerhtml.length == 0)             {                 return "999999999";  // or suitably large number!             }             else             {                 return node.innerhtml;             }                    }        } );  

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -