Skip to content

Commit

Permalink
add query open time to numeric sort
Browse files Browse the repository at this point in the history
  • Loading branch information
pburnsdata committed Oct 3, 2018
1 parent cbba231 commit cd42305
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions build/queryOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion src/listing/onDraw/onClick/manualSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit cd42305

Please sign in to comment.