
$.tablesorter.addParser({ 
	id: 'targets', 
	is: function(s) { 
		// return false so this parser is not auto detected 
		return false; 
	}, 
	format: function(s) { 
		if(/^\s*-\s*$/.test(s))
			return -1;
		return parseInt(s.match(/\d+/));
	}, 
	// set type, either numeric or text 
	type: 'numeric' 
}); 

$('.ds_list').tablesorter({ sortList:[[0,0]], textExtraction:'complex' });
$('.ds_list').bind('sortEnd', function(){
	var header = $('thead', this);
	if(header.length == 0) {
		header = $('thead', $(this).prev());
	}
	$('th.headerSortDown img', header).each(function(){
		this.src = dsListHelper.ascImgSrc;
	});
	$('th.headerSortUp img', header).each(function(){
		this.src = dsListHelper.descImgSrc;
	});
	$('th.header:not(.headerSortDown, .headerSortUp) img', header).each(function(){
		this.src = dsListHelper.sortableImgSrc;
	});
});
