@datarailsshared/dr_renderer 1.2.139-tigers → 1.2.140-tigers
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7780,7 +7780,14 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7780
7780
|
}
|
|
7781
7781
|
lodash.forEach(datesFields, function (row) {
|
|
7782
7782
|
row.values = lodash.uniq(row.values);
|
|
7783
|
-
|
|
7783
|
+
|
|
7784
|
+
const isTimestampDateField = row.type === 'Date' && typeof row.values[0] === 'number';
|
|
7785
|
+
if (isTimestampDateField) {
|
|
7786
|
+
row.values = row.values.sort((a, b) => a - b);
|
|
7787
|
+
} else {
|
|
7788
|
+
row.values = row.values.sort();
|
|
7789
|
+
}
|
|
7790
|
+
|
|
7784
7791
|
if (row.sorting && row.sorting.type == "largestToSmallest") {
|
|
7785
7792
|
row.values = lodash.reverse(row.values);
|
|
7786
7793
|
}
|