JSFiddle - React, Tailwind, and code Playground

HTML

<div class="demo-info" style="margin-bottom:10px">
  <div class="demo-tip icon-tip">&nbsp;</div>
  <div>Pivot Grid - Column Order Issue</div>
</div>
<table id="pg" style="width:500px;height:300px"></table>

CSS

</style>
<link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css"> <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/demo/demo.css"> <script type="text/javascript" src="https://code.jquery.com/jquery.min.js"></script> <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.pivotgrid.js"></script>
<style>

JavaScript

var sort_by = function(field, reverse, primer){

   var key = primer ? 
       function(x) {return primer(x[field])} : 
       function(x) {return x[field]};

   reverse = !reverse ? 1 : -1;

   return function (a, b) {
       return a = key(a), b = key(b), reverse * ((a > b) - (b > a));
     } 
}

var data = [{
  "ProjectName": "Company Holiday",
  "OrderNumber": "123",
  "Hrs": 8,
  "ResourceName": "Gilly",
  "ForecastMonth": "Dec-16",
  "FcDate":"12-16"
}, {
  "ProjectName": "Company Holiday",
  "OrderNumber": "123",
  "Hrs": 8,
  "ResourceName": "Bill",
  "ForecastMonth": "Apr-16",
  "FcDate":"04-16"
},{
  "ProjectName": "Vacation",
  "OrderNumber": "123",
  "Hrs": 8,
  "ResourceName": "Adam",
  "ForecastMonth": "Jan-16",
  "FcDate":"01-16"
}, {
  "ProjectName": "Vacation",
  "OrderNumber": "123",
  "Hrs": 8,
  "ResourceName": "Brain",
  "ForecastMonth": "Mar-16",
  "FcDate":"03-16"
},
{
  "ProjectName": "Vacation",
  "OrderNumber": "123",
  "Hrs": 8,
  "ResourceName": "Bill",
  "ForecastMonth": "Feb-16",
  "FcDate":"02-16"
}, 
];

// Sort by city, case-insensitive, A-Z
data.sort(sort_by('FcDate', false, function(a){return a.toUpperCase()}));

$(function() {
  $('#pg').pivotgrid({
    pivot: {
      rows: ['ProjectName', 'ResourceName'],
      columns: ['ForecastMonth'],
      values: [{
        field: 'Hrs',
        op: 'sum'
      }],
      filters: ['ProjectName', 'ResourceName', 'ForecastMonth']
    },
    forzenColumnTitle: '<span style="font-weight:bold">Resource Name</span>',
    valuePrecision: 0,
    data: data
  });
});