Custom sorting function and icon for table in boostrap framework

I am new to div usage and manage to get some template online and change accordingly. So far below are my codes. The issue now I got my tables and I know there exist a jquery for datatable which does the sorting. The problem I have is that I want to define my own sorting and also the search to be specific to certain fields only. Secondly I dont want the user to set how many data they want in one page. I can solve all the rest of issue only think in some of the column I want to set the 2 arrow image to state either sort by asc or desc. How to set in my scenario?

    <!DOCTYPE html>
    <html lang="en">
    <head>
    	
    	<meta charset="utf-8">
    	<title>Master</title>
    	
    	
    	<!-- The styles -->
    	<link id="bs-css" href="css/bootstrap-journal.css" rel="stylesheet">
    	<style type="text/css">
    	  body {
    		padding-bottom: 40px;
    	  }
    	  .sidebar-nav {
    		padding: 9px 0;
    	  }
    	</style>
    	<link href="css/bootstrap-responsive.css" rel="stylesheet">
    	<link href="css/charisma-app.css" rel="stylesheet">
    	<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
    	<link href='css/fullcalendar.css' rel='stylesheet'>
    	<link href='css/fullcalendar.print.css' rel='stylesheet'  media='print'>
    	<link href='css/chosen.css' rel='stylesheet'>
    	<link href='css/uniform.default.css' rel='stylesheet'>
    	<link href='css/colorbox.css' rel='stylesheet'>
    	<link href='css/jquery.cleditor.css' rel='stylesheet'>
    	<link href='css/jquery.noty.css' rel='stylesheet'>
    	<link href='css/noty_theme_default.css' rel='stylesheet'>
    	<link href='css/elfinder.min.css' rel='stylesheet'>
    	<link href='css/elfinder.theme.css' rel='stylesheet'>
    	<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
    	<link href='css/opa-icons.css' rel='stylesheet'>
    	<link href='css/uploadify.css' rel='stylesheet'>

    	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    	<!--[if lt IE 9]>
    	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    	<![endif]-->

    	<!-- The fav icon -->
    	<link rel="shortcut icon" href="img/favicon.ico">
    		
    </head>

    <body>
    	
    	
    	<div class="navbar">
    		<div class="navbar-inner">
    			<div class="container-fluid">
    				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
    					<span class="icon-bar"></span>
    					<span class="icon-bar"></span>
    					<span class="icon-bar"></span>
    				</a>
    				 <img alt="Logo" src="img/logo20.png" />
    				
    				<!-- theme selector starts -->
    				<div class="btn-group pull-right theme-container" >
    					<h5>User Name:  my demo</h5>
                        Logout
    				</div>
    				
    				
    				
    			</div>
    		</div>
    	</div>	

    		<div class="container-fluid">
    		<div class="row-fluid">
    				
    			<!-- left menu starts -->
    			<div class="span2 main-menu-span">
    				<div class="well nav-collapse sidebar-nav">
    					<ul class="nav nav-tabs nav-stacked main-menu">
    						<li class="nav-header hidden-tablet">Vtst1</li>
                <li><a class="ajax-link" href="test1.php"><i class="icon-home"></i>  <span class="hidden-tablet">Test1</span></a></li>
                <li><a class="ajax-link" href="test2.php"><i class="icon-eye-open"></i>  <span class="hidden-tablet">Test2</span></a></li>

                <li class="nav-header hidden-tablet">Admin</li>
                <li><a class="ajax-link" href="addM.php"><i class="icon-home"></i>  <span class="hidden-tablet">Master</span></a></li>
                <li><a class="ajax-link" href="gridU.php"><i class="icon-eye-open"></i>  <span class="hidden-tablet">UD</span></a></li>

    						
    						</ul>
    					
    				</div><!--/.well -->
    			</div>
    						<!--/span-->
    			<!-- left menu ends -->
    			
    			
    			
    			<div id="content" class="span10">
    			<!-- content starts -->
    			

    			<div>
    				<ul class="breadcrumb">
    					<li>
    						<a href="#">Home</a> <span class="divider">/</span>
    					</li>
    					<li>
    						<a href="#">Forms</a>
    					</li>
    				</ul>
    			</div>
    			
    			
    			<div class="row-fluid ">
    				<div class="box span6">
    					<div class="box-header well" data-original-title>
    						<h2>Add Master</h2>
    					
    					</div>
    					<div class="box-content">
    						<form class="form-horizontal">
    							<fieldset>
    							
    							
    							  <div class="control-group">
    								<label class="control-label" for="selectError3">M Type</label>
    								<div class="controls">
    								  <select id="selectError3">
    									<option>T1</option>
    									<option>T2</option>
    									<option>T2</option>

    								  </select>
    								</div>
    							  </div>
    							  <div class="control-group">
    								<label class="control-label" for="inputSuccess">MSN</label>
    								<div class="controls">
    								  <input type="text" id="inputSuccess">
    								
    								</div>
    							  </div>
    							  <div class="form-actions">
    								<button type="submit" class="btn btn-primary">Save</button>
    								<button class="btn">Cancel</button>
    							  </div>
    							</fieldset>
    						  </form>
    					
    					</div>
    				</div><!--/span-->
    			
    			
    			  <div class="box span6 ">
    					<div class="box-header well" data-original-title>
    						<h2>Active Masters</h2>
    						
    						
    					</div>
    					<div class="box-content">
    						<table class="table table-striped table-bordered ">
    						  <thead>
    							  <tr>
    								  <th>No</th>
    								  <th>M Type</th>
    								  <th>MSN</th>
    								  <th>Status</th>
    								  <th>Actions</th>
    							  </tr>
    						  </thead>
    						  <tbody>
    							<tr>
    								<td>1</td>
    								<td class="center">T1</td>
    								<td class="center">MSA1122</td>
    								<td class="center">
    									<span class="label label-success">Active</span>
    								</td>
    								<td class="center">
    									<a class="btn btn-success" href="#">
    									
    										View
    									</a>
    									<a class="btn btn-info" href="#">
    										
    										Edit
    									</a>
    									<a class="btn btn-danger" href="#">
    										
    										Delete
    									</a>
    								</td>
    							</tr>
    							<tr>
    								<td>2</td>
    								<td class="center">T2</td>
    								<td class="center">MSN121</td>
    								<td class="center">
    									<span class="label label-success">Active</span>
    								</td>
    								<td class="center">
    									<a href="#">
    										<span class="label label-success">View</span>
    									</a>
    									<a  href="#">
    										<span class="label label-success">Edit</span>
    									</a>
    									<a  href="#">
    										<span class="label label-success">Delete</span>
    									</a>
    								</td>
    							</tr>
    					
    							<tr>
    								<td>3</td>
    								<td class="center">T3</td>
    								<td class="center">MSA1114</td>
    								<td class="center">
    									<span class="label label-warning">Active</span>
    								</td>
    								<td class="center">
    									<a class="btn btn-success" href="#" title="View" data-rel="tooltip">
    										<i class="icon-zoom-in icon-white" ></i>
    										
    									</a>
    									<a class="btn btn-info" href="#" title="Edit" data-rel="tooltip">
    										<i class="icon-edit icon-white" ></i>
    										
    									</a>
    									<a class="btn btn-danger" href="#" title="Delete"  data-rel="tooltip">
    										<i class="icon-trash icon-white"></i>
    										
    									</a>
    								</td>
    							</tr>
    							
    							
    						
    							
    							
    							
    						  </tbody>
    					  </table>
    					  <table>
    					  	<tr><td><label class="" for="selectError3">Page</label></td><td><select style="width: 50px" id="selectError3">
    									<option>1</option>
    									<option>2</option>
    									<option>3</option>
                    </select></td>
                    <td width="30">     </td>
                    <td><label class="control-label" for="inputSuccess">Search</label></td>
                    <td><input type="text" id="inputSuccess" style="width:5em"></td>
                    <td width="5">     </td>
                    <td valign="top"><button type="submit" class="btn btn-primary">Submit</button></td>
                    </tr>
    					  </table>
    					</div>
    					
    							
    								
    								
    				</div><!--/span-->
    			
    			
    			  </div><!--/row-->
    			
    			
    			
    			
    					<!-- content ends -->
    			</div><!--/#content.span10-->
    			
    			
    		
    			
    			
    			</div><!--/fluid-row-->
    				
    		<hr>

    	  <footer>
    			<p class="pull-right">Powered by: Test</p>
    </footer>		
    		
    	</div><!--/.fluid-container-->

    	<!-- external javascript
    	================================================== -->
    	<!-- Placed at the end of the document so the pages load faster -->

    	<!-- jQuery -->
    <script src="js/jquery-1.7.2.min.js"></script>
    	<!-- jQuery UI -->
    	<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
    	<!-- transition / effect library -->
    	<script src="js/bootstrap-transition.js"></script>
    	<!-- alert enhancer library -->
    	<script src="js/bootstrap-alert.js"></script>
    	<!-- modal / dialog library -->
    	<script src="js/bootstrap-modal.js"></script>
    	<!-- custom dropdown library -->
    	<script src="js/bootstrap-dropdown.js"></script>
    	<!-- scrolspy library -->
    	<script src="js/bootstrap-scrollspy.js"></script>
    	<!-- library for creating tabs -->
    	<script src="js/bootstrap-tab.js"></script>
    	<!-- library for advanced tooltip -->
    	<script src="js/bootstrap-tooltip.js"></script>
    	<!-- popover effect library -->
    	<script src="js/bootstrap-popover.js"></script>
    	<!-- button enhancer library -->
    	<script src="js/bootstrap-button.js"></script>
    	<!-- accordion library (optional, not used in demo) -->
    	<script src="js/bootstrap-collapse.js"></script>
    	<!-- carousel slideshow library (optional, not used in demo) -->
    	<script src="js/bootstrap-carousel.js"></script>
    	<!-- autocomplete library -->
    	<script src="js/bootstrap-typeahead.js"></script>
    	<!-- tour library -->
    	<script src="js/bootstrap-tour.js"></script>
    	<!-- library for cookie management -->
    	<script src="js/jquery.cookie.js"></script>
    	<!-- calander plugin -->
    	<script src='js/fullcalendar.min.js'></script>
    	<!-- data table plugin -->
    	<script src='js/jquery.dataTables.min.js'></script>

    	<!-- chart libraries start -->
    	<script src="js/excanvas.js"></script>
    	<script src="js/jquery.flot.min.js"></script>
    	<script src="js/jquery.flot.pie.min.js"></script>
    	<script src="js/jquery.flot.stack.js"></script>
    	<script src="js/jquery.flot.resize.min.js"></script>
    	<!-- chart libraries end -->

    	<!-- select or dropdown enhancer -->
    	<script src="js/jquery.chosen.min.js"></script>
    	<!-- checkbox, radio, and file input styler -->
    	<script src="js/jquery.uniform.min.js"></script>
    	<!-- plugin for gallery image view -->
    	<script src="js/jquery.colorbox.min.js"></script>
    	<!-- rich text editor library -->
    	<script src="js/jquery.cleditor.min.js"></script>
    	<!-- notification plugin -->
    	<script src="js/jquery.noty.js"></script>
    	<!-- file manager library -->
    	<script src="js/jquery.elfinder.min.js"></script>
    	<!-- star rating plugin -->
    	<script src="js/jquery.raty.min.js"></script>
    	<!-- for iOS style toggle switch -->
    	<script src="js/jquery.iphone.toggle.js"></script>
    	<!-- autogrowing textarea plugin -->
    	<script src="js/jquery.autogrow-textarea.js"></script>
    	<!-- multiple file upload plugin -->
    	<script src="js/jquery.uploadify-3.1.min.js"></script>
    	<!-- history.js for cross-browser state change on ajax -->
    	<script src="js/jquery.history.js"></script>
    	<!-- application script for Charisma demo -->
    	<script src="js/charisma.js"></script>
    	
    		
    </body>
    </html>