sort tags by # then by alpha of first tag

ref #509
This commit is contained in:
Collin M. Barrett 2018-09-22 16:19:45 -05:00
parent 5fe9a963a5
commit a2c7072909

View file

@ -70,7 +70,17 @@ export const ListsTable = (props: IProps) => {
(r[f.id]
? r[f.id].map((e: any) => e.name).join().toUpperCase().includes(f.value.toUpperCase())
: null),
sortable: false,
sortMethod: (a: any, b: any) => a
? b
? a.length === b.length
? a[0].name > b[0].name
? -1
: 1
: a.length > b.length
? 1
: -1
: 1
: -1,
Cell: (c: any) => c.value
? <div className="fl-tag-container">
{c.value.map((e: any, i: number) =>