plugins/bootstrap/datatable.js
function(el) {
			var mythis = this;

			this.source.colSortIdx = el.data('col-idx');
			this.source.columns[el.data('col-idx')].dir = this.source.columns[el.data('col-idx')].dir == 'asc' ? 'desc' : 'asc';

			this.source.update(function() {
				mythis.render();
			});
		}
function(el) {
			var mythis = this;

			this.source.colSortIdx = el.data('col-idx');
			this.source.columns[el.data('col-idx')].dir = this.source.columns[el.data('col-idx')].dir == 'asc' ? 'desc' : 'asc';

			this.source.update(function() {
				mythis.render();
			});
		}
function ( el ) { var mythis = this ; this . source . colSortIdx = el . data ( 'col-idx' ) ; this . source . columns [ el . data ( 'col-idx' ) ] . dir = this . source . columns [ el . data ( 'col-idx' ) ] . dir == 'asc' ? 'desc' : 'asc' ; this . source . update ( function ( ) { mythis . render ( ) ; } ) ; }
Sorts the datatable
Sorts the datatable