# Table - Field Sort and Hide

##### Back to Table Component Documentation

This example shows how to use the `<k-tc-field-sort-hide>` component to allow users to show or hide fields in the table, and sort fields.

    <k-table id="fieldVisibilityExample">
      <k-tc-field-sort-hide slot="top"></k-tc-field-sort-hide>
    </k-table>
    <script type="module" src="../kempo/components/tableControls/FieldSortHide.js"></script>
    <script type="module">
      document.getElementById('fieldVisibilityExample').setRecords(contacts);
    </script>