From 2954bd2f49d24491c537b3f7c53bb3464f727dd4 Mon Sep 17 00:00:00 2001 From: SaeX Date: Sat, 14 Feb 2015 10:14:12 +0100 Subject: [PATCH] Add "-" as delimiter --- sorting/date-eu.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sorting/date-eu.js b/sorting/date-eu.js index fdda790..bd3a7d3 100644 --- a/sorting/date-eu.js +++ b/sorting/date-eu.js @@ -32,7 +32,12 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, { if (date.indexOf('.') > 0) { /*date a, format dd.mn.(yyyy) ; (year is optional)*/ eu_date = date.split('.'); - } else { + } + else if (date.indexOf('-') > 0) { + /*date a, format dd-mn-(yyyy) ; (year is optional)*/ + eu_date = date.split('-'); + } + else { /*date a, format dd/mn/(yyyy) ; (year is optional)*/ eu_date = date.split('/'); }