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