bug: sorting of date is fixed

This commit is contained in:
Palash gupta 2022-02-12 14:26:03 +05:30
parent 5510c67dbf
commit 28e8cffeaa
No known key found for this signature in database
GPG Key ID: 8FD05AE6F9150AD6

View File

@ -45,7 +45,9 @@ const TraceTable = ({ getSpansAggregate }: TraceProps) => {
const day = dayjs(value);
return <div>{day.format('DD/MM/YYYY HH:MM:ss A')}</div>;
},
sorter: (a, b) => dayjs(a.timestamp).diff(dayjs(b.timestamp)),
sorter: (a, b) =>
dayjs(a.timestamp).toDate().getTime() -
dayjs(b.timestamp).toDate().getTime(),
},
{
title: 'Service',