rtCells = this.$thead.length > 0 ? this.$thead.find('th:not(.no-sort)') : this.$table.find('th:not(.no-sort)');
					this.$sortCells.on('click.tablesort', function() {
						self.sort($(this));
					});
					this.index = null;
					this.$th = null;
					this.direction = null;
				};
			
				$.tablesort.prototype = {
			
					sort: function(th, direction) {
						var start = new Date(),
							self = this,
							table = this.$table,
							rowsContainer = table.find('tbody').length > 0 ? table.find('tbody')