Grid.prototype.sortColumn = function sortColumn(column, directionOrAdd, add) { ... Why default typeof column.sort is Array? Whe it is object, then state is ok. First time sorting it is Array and state can not be saved.