Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes sequence ID ordering issue

elijahbenizzy17d323b94338
diff --git a/telemetry/ui/src/components/routes/app/AppView.tsx b/telemetry/ui/src/components/routes/app/AppView.tsx
index 2ea39f45..fb37883e 100644
--- a/telemetry/ui/src/components/routes/app/AppView.tsx
+++ b/telemetry/ui/src/components/routes/app/AppView.tsx
@@ -171,6 +171,11 @@ export const AppView = (props: {
const stepsCopied = [...data.steps];
const stepsSorted = stepsCopied.sort((a, b) => {
// Parse dates to get time in milliseconds
+ const sequenceA = a.step_start_log.sequence_id;
+ const sequenceB = b.step_start_log.sequence_id;
+ if (sequenceA !== sequenceB) {
+ return sequenceB - sequenceA;
+ }
const timeA = new Date(a.step_start_log.start_time).getTime();
const timeB = new Date(b.step_start_log.start_time).getTime();