<commit_before>import Column from './column.js'

export default {
  name: 'VkTableColumnSort',
  extends: Column,
  props: {
    // the row value to be sorted by (defaults to cell prop)
    sortBy: {
      type: String
    },
    // the header label
    header: {
      type: String
    },
    headerClass: {
      type: String
    },
    // the cell key
    cell: {
      type: String
    },
    cellClass: {
      type: String
    }
  },
  headerRender (h) {
    const Table = this.$parent
    const sortBy = this.sortBy || this.cell
    const orderedBy = Table.sortedBy[sortBy]
    const defaultContent = h(Header, {
      props: {
        sortBy,
        orderedBy,
        name: this.header,<commit_msg>remove table sortBy prop<commit_after>import Column from './column.js'

export default {
  name: 'VkTableColumnSort',
  extends: Column,
  props: {
    header: {
      type: String
    },
    headerClass: {
      type: String
    },
    // sort by and display data
    // use scopedSlots for altering the display
    cell: {
      type: String
    },
    cellClass: {
      type: String
    }
  },
  headerRender (h) {
    const Table = this.$parent
    const sortBy = this.cell
    const orderedBy = Table.sortedBy[sortBy]
    const defaultContent = h(Header, {
      props: {
        sortBy,
        orderedBy,
        name: this.header,
{'fraction_non_alphanumeric': 0.10541945063103192, 'fraction_numerical': 0.0, 'mean_word_length': 2.0156599552572705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5084252', 'n_tokens_mistral': 421, 'n_tokens_neox': 421, 'n_words': 118}