/*
 * 
 * TableSorter 2.0 extension for parsing german digits
 * Version 0.5
 * 
 * Copyright (c) 2009 Hamburg Messe und Congress GmbH
 * Licensed under the GPL license:
 * http://www.gnu.org/licenses/gpl.html
 * 
 * @author Steffen Rosskamp/steffen.rosskamp@hamburg-messe.de
 *
 */

$.tablesorter.addParser({
	id: "germandigit",
	is: function(s,table) {
		return false;
	},
	format: function(s,table) {
		var t = s.replace(/\./g,"");
		return $.tablesorter.formatFloat(t);
	},
	type: "numeric"
});

$.tablesorter.addParser({
	id: "dedigit",
	is: function(s,table) {
		return false;
	},
	format: function(s) {
		var t = s.replace(/\./g,"");
		return $.tablesorter.formatFloat(t);
	},
	type: "numeric"
});

$.tablesorter.addParser({
	id: "endigit",
	is: function(s,table) {
		return false;
	},
	format: function(s) {
		var t = s.replace(/\,/g,"");
		return $.tablesorter.formatFloat(t);
	},
	type: "numeric"
});