code: function removeHiddenColumns(oldSorted, hiddenColumns){
      var dirty = false;
      oldSorted.forEach(function(i) {
          var j = 0,
              colIndex;
          while (j < hiddenColumns.length) {
              colIndex = hiddenColumns[j].index + 1; //hack to get around 0 index
              if (colIndex === i) {
                  hiddenColumns[j].unSort();
                  dirty = true;
                  break;
              }
              j++;
          }
      });
      return dirty;
  }
docs: Logic to moved to adapter layer outside of Hypergrid Core