Hex Core JS
    Preparing search index...

    Function useTableSorting

    • Handles sorting table data based on a column and direction (ASC/DESC).

      Type Parameters

      • T extends Record<any, any>

      Parameters

      Returns {
          sortColumn: keyof T | null;
          sortedData: T[];
          sortIsAsc: boolean;
          updateSort: (colName: keyof T) => void;
      }