removed fc/aj sort

This commit is contained in:
Polaris 2024-08-16 15:27:24 -04:00
parent 1bd64440cb
commit 4186a110cf

View File

@ -120,7 +120,7 @@ export const columns: ColumnDef<chunithm>[] = [
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
FC/AJ
<ArrowUpDown className="ml-2 h-4 w-4" />
{/* <ArrowUpDown className="ml-2 h-4 w-4" /> */}
</Button>
);
},
@ -132,14 +132,14 @@ export const columns: ColumnDef<chunithm>[] = [
{row.original.isAllJustice && <span>All Justice</span>}
</div>
),
sortingFn: (a, b) => {
const isAllJustice = a.original.isAllJustice;
const defaultSort = b.original.isAllJustice;
// sortingFn: (a, b) => {
// const isAllJustice = a.original.isAllJustice;
// const defaultSort = b.original.isAllJustice;
if (isAllJustice && !defaultSort) return -1;
if (!isAllJustice && defaultSort) return 1;
return 0;
},
// if (isAllJustice && !defaultSort) return -1;
// if (!isAllJustice && defaultSort) return 1;
// return 0;
// },
},
{