mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 01:09:02 +08:00
bug: sorting of date is fixed
This commit is contained in:
parent
5510c67dbf
commit
28e8cffeaa
@ -45,7 +45,9 @@ const TraceTable = ({ getSpansAggregate }: TraceProps) => {
|
|||||||
const day = dayjs(value);
|
const day = dayjs(value);
|
||||||
return <div>{day.format('DD/MM/YYYY HH:MM:ss A')}</div>;
|
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',
|
title: 'Service',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user