Hi,
I have to sort a column in my mvc view, on click of a small icon in the table header part ascending and descending order alternatively.
<style type="text/css">
table.sortable thead {
background-color: #eee;
color: #666666;
font-weight: bold;
cursor: default;
}
</style>
<script src="http://www.kryogenix.org/code/browser/sorttable/sorttable.js" type="text/javascript">
var newTableObject = document.getElementById("myTable")
sorttable.makeSortable(newTableObject);
</script>
<table id="myTable" style="width:100%" border="0" cellspacing="0" cellpadding="0" class="sortable">