From 37912f4d830165cbccf5f489f4362b280c938847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 12 Nov 2014 11:52:23 +0100 Subject: [PATCH] Feature #3264: Fix showback table ordering --- src/sunstone/public/js/sunstone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 1cdfa70737..a5e955abda 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -4995,7 +4995,7 @@ function fillShowback(div, req, response) { var showback_data = []; $.each(vms_per_date, function(year, months){ $.each(months, function(month, value){ - series.push([""+year+month, year, month, $months[month-1] + " " + year, value.TOTAL]) + series.push([(new Date(year, month-1)).getTime(), year, month, $months[month-1] + " " + year, value.TOTAL]) showback_data.push([(new Date(year, month-1)), value.TOTAL.toFixed(2) ]) }) })