feat(web): re-enable syntax column sort

This commit is contained in:
Collin M. Barrett 2020-08-30 13:51:24 -05:00
parent 6b027c7987
commit 6801e48dcc

View file

@ -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) => ({