       let direction = this.state.sort.direction          if (this.state.sort.column === column) {          // Change the sort direction if the same column is sorted.          direction = this.state.sort.direction === 'asc' ? 'desc' : 'asc'       