Skip to content

Commit

Permalink
add reverse sort
Browse files Browse the repository at this point in the history
  • Loading branch information
dubwub committed Feb 13, 2025
1 parent bdca459 commit 7a4140c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/fern-docs/ai-analytics/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ export default async function Home({
process.env.BRAINTRUST_API_KEY || "",
thresholdDate
);

chatLogs.sort((a, b) => {
return new Date(b.created).getTime() - new Date(a.created).getTime();
});
// const counts = await fetchCountsByDomainAfterThreshold(thresholdDate);

const data = chatLogs;
Expand Down

0 comments on commit 7a4140c

Please sign in to comment.