 0) return;
			
						//click on a different column
						if (this.index !== th.index()) {
							this.direction = 'asc';
							this.index = th.index();
						}
						else if (direction !== 'asc' && direction !== 'desc')
							this.direction = this.direction === 'asc' ? 'desc' : 'asc';
						else
							this.direction = direction;
			
						direction = this.direction == 'asc' ? 1 : -1;
			
						self.$table.trigger('tablesort:start', [self]);
						self.log("Sorting by " + this.index + ' ' + this.directio