tweak date added sort method

ref #271
This commit is contained in:
Collin M. Barrett 2018-06-08 11:45:17 -05:00
parent 2eb7e03cee
commit e1941729fd

View file

@ -99,7 +99,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
filterable: true,
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase()
.includes(filter.value.toUpperCase()),
sortMethod: (a: any, b: any) => a.join().toUpperCase() > b.join().toUpperCase() ? 1 : -1,
sortMethod: (a: any, b: any) => a > b ? 1 : -1,
Cell: (cell: any) => <div>{moment(cell.value).format("M-D-YY")}</div>,
style: { whiteSpace: "inherit" },
width: 70,