mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-10 02:39: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);
|
||||
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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user