We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb7e86 commit e0cc541Copy full SHA for e0cc541
src/stream/stream.ts
@@ -41,11 +41,9 @@ export class Stream {
41
1 / 4,
42
(point: number) => values[point],
43
(a, b) => {
44
- return (
45
- descending(a.timestamp, b.timestamp) ||
46
- descending(a.partition_id, b.partition_id) ||
47
- descending(a.offset, b.offset)
48
- );
+ return a.partition_id === b.partition_id
+ ? descending(a.offset, b.offset)
+ : descending(a.timestamp, b.timestamp);
49
},
50
);
51
}
0 commit comments