title: How does one supply a custom sort function for react table 7?
body: <p>The <a href="https://react-table.tanstack.com/docs/api/useSortBy" rel="noreferrer">documention</a> for useSortBy sortType properties says:</p>
  <pre><code>sortType: String | Function(rowA: &lt;Row&gt;, rowB: &lt;Row&gt;, columnId: String, desc: Bool)
  
      Used to compare 2 rows of data and order them correctly.
      If a function is passed, it must be memoized. The sortType function should return -1 if rowA is larger, and 1 if rowB is larger. react-table will take care of the rest.
      String options: basic, datetime, alphanumeric. Defaults to alphanumeric.
      The resolved function from the this string/function will be used to sort the this column's data.
          If a string is passed, the function with that name located on either the custom sortTypes option or the built-in sorting types object will be used.
          If a function is passed, it will be used.
      For more information on sort types, see Sorting
  </code></pre>
  <p>but doesn't explain fully how to use it.</p>
  <p>So how does one supply a sortType function?</p>