mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(web): ✨ re-enable syntax column sort
This commit is contained in:
parent
6b027c7987
commit
6801e48dcc
1 changed files with 1 additions and 9 deletions
|
|
@ -189,15 +189,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => {
|
|||
title="Syntaxes"
|
||||
key="Syntaxes"
|
||||
dataIndex={nameof<List>("syntaxIds")}
|
||||
// sorter={(a, b) => {
|
||||
// const syntaxA = syntaxes.find((s) => s.id === a.syntaxIds);
|
||||
// const syntaxB = syntaxes.find((s) => s.id === b.syntaxIds);
|
||||
// return syntaxA
|
||||
// ? syntaxB
|
||||
// ? syntaxA.name.localeCompare(syntaxB.name)
|
||||
// : -1
|
||||
// : 1;
|
||||
// }}
|
||||
sorter={(a, b) => arraySorter(a.syntaxIds, b.syntaxIds, syntaxes)}
|
||||
width={254}
|
||||
className={styles.nogrow}
|
||||
// filters={syntaxes.map((s) => ({
|
||||
|
|
|
|||
Loading…
Reference in a new issue