diff --git a/src/cableEstimator/cableEstimator.tsx b/src/cableEstimator/cableEstimator.tsx index ac9991f..960e06a 100644 --- a/src/cableEstimator/cableEstimator.tsx +++ b/src/cableEstimator/cableEstimator.tsx @@ -167,7 +167,7 @@ export default function CableEstimator() { //having the search filter in here is quite inefficient as it will filter each time you change pages as well //TODO: re-work the filter so it only filters when the search is changed - // + // sort the array according to orderBy clone.sort((a, b) => { if (Object.keys(a).includes(orderBy)) { let by = orderBy as keyof jsonBin diff --git a/src/common/ResponsiveTable.tsx b/src/common/ResponsiveTable.tsx index 8cdfe3c..3f637d3 100644 --- a/src/common/ResponsiveTable.tsx +++ b/src/common/ResponsiveTable.tsx @@ -460,7 +460,7 @@ export default function ResponsiveTable(props: Props) { onClick={() => !column.disableSort && columnClick(column)} sx={{ cursor: column.disableSort ? "default" : "pointer" }} > - + {column.title} {showOrderIcon(column)}