[web] Show most recently resolved comments at the top (#22835)

GitOrigin-RevId: cb42a0fe3d6bf5d23d329b6ef9732f7cb9612907
This commit is contained in:
Domagoj Kriskovic
2025-01-15 10:26:29 +01:00
committed by Copybot
parent 1ec9d6222f
commit 7be2796e0e
@@ -56,6 +56,10 @@ export const ReviewPanelResolvedThreadsMenu: FC = () => {
resolvedThreads.push({ thread, id })
}
}
resolvedThreads.sort((a, b) => {
return Date.parse(b.thread.resolved_at) - Date.parse(a.thread.resolved_at)
})
return resolvedThreads
}, [threads])