From cd42305a656337c52f0ef1ae0499cd782659c6ec Mon Sep 17 00:00:00 2001 From: Preston Burns Date: Wed, 3 Oct 2018 16:36:24 -0400 Subject: [PATCH] add query open time to numeric sort --- build/queryOverview.js | 7 ++++--- src/listing/onDraw/onClick/manualSort.js | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build/queryOverview.js b/build/queryOverview.js index b542e1a..e54fd94 100644 --- a/build/queryOverview.js +++ b/build/queryOverview.js @@ -1553,7 +1553,10 @@ _this.sortable.order.forEach(function(item) { var aCell = a[item.col]; var bCell = b[item.col]; - if (item.col !== context.chart.initialSettings.age_col) { + if ( + item.col !== context.chart.initialSettings.age_col && + item.col !== context.chart.initialSettings.open_col + ) { if (order === 0) { if ( (item.direction === 'ascending' && aCell < bCell) || @@ -1706,8 +1709,6 @@ document.getElementsByTagName('head')[0].appendChild(this.style); } - //chart callbacks - //listing callbacks function queryOverview$1(element, settings) { var mergedSettings = Object.assign({}, configuration.settings, settings); var syncedSettings = configuration.syncSettings(mergedSettings); diff --git a/src/listing/onDraw/onClick/manualSort.js b/src/listing/onDraw/onClick/manualSort.js index b4997de..355158a 100644 --- a/src/listing/onDraw/onClick/manualSort.js +++ b/src/listing/onDraw/onClick/manualSort.js @@ -7,7 +7,10 @@ export default function manualSort() { this.sortable.order.forEach(item => { const aCell = a[item.col]; const bCell = b[item.col]; - if (item.col !== context.chart.initialSettings.age_col) { + if ( + item.col !== context.chart.initialSettings.age_col && + item.col !== context.chart.initialSettings.open_col + ) { if (order === 0) { if ( (item.direction === 'ascending' && aCell < bCell) ||