Skip to content

Commit 83a63eb

Browse files
authored
Merge pull request #163 from mgalesloot/feature/159-events-sort
flux: sort events on timestamp
2 parents 5d79c07 + 608c289 commit 83a63eb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

flux/src/helpers/index.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,13 @@ export function ObjectEvents(props: { events: any }) {
110110
muiTableBodyCellProps: {
111111
align: 'right',
112112
},
113-
sortingFn: (rowA, rowB) => {
114-
return (
115-
new Date(rowB.lastTimestamp).getTime() - new Date(rowA.lastTimestamp).getTime()
116-
);
117-
},
118113
},
119114
]}
120115
data={events}
121116
initialState={{
122117
sorting: [
123118
{
124-
id: 'Age',
119+
id: 'age',
125120
desc: false,
126121
},
127122
],

0 commit comments

Comments
 (0)