I need sort table by clicking on headers. I can use only native js.
<table>
<tr>
<th>First Name</th>
<th>Date of Birth</th>
<th>Salary</th>
</tr>
First Name (John) – sort text.
Date (23 Jul 1984) – sort date.
Salary ($69000) – sort number.
What you want to say with native js ? .. not pluggins ?
you can check posted in question Sort a table fast by its first column with Javascript or jQuery
Fiddle [http://jsfiddle.net/qNwDe/%5D%5B1%5D