removed fc/aj sort
This commit is contained in:
parent
1bd64440cb
commit
4186a110cf
@ -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;
|
||||
// },
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user