You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SORTING.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,28 @@
1
-
## How activities are being grouped?
1
+
## How are activities grouped?
2
2
3
3
Before sorting, activities are grouped as a unit:
4
4
5
-
- Activities within same part grouping will be inserted next to each other
5
+
- Activities within the same part grouping are inserted next to each other
6
6
- Order is based on the `position` property
7
7
- Logical timestamp of the part grouping is the "maximum logical timestamp" of all parts
8
-
- Parts can contains livestream session or ungrouped activities
9
-
- Activities within same livestream session will be inserted next to each other
8
+
- Parts can contain livestream session or ungrouped activities
9
+
- Activities within the same livestream session will be inserted next to each other
10
10
- Order is based on the `streamSequence` property
11
11
- Logical timestamp of the livestream session is the logical timestamp of the finalizing activity (if any), or the logical timestamp of the first activity
12
12
- In other words, livestream will be reordered when they are inserted for the first time, or when they are finalized
13
13
- Interim updates will not reorder the livestream to avoid too much flickering
14
-
- All other activities are not grouped, they are unit of themselves
14
+
- All other activities are not grouped, they are individual units
15
15
16
-
## How activities are being sorted?
16
+
## How are activities sorted?
17
17
18
-
Short answer: activities are sorted by logical timestamp on insertion.
18
+
Short answer: activities are sorted by logical timestamp when inserted.
19
19
20
20
Long answer:
21
21
22
-
- For grouped activities (such as part grouping or livestream sessions), all activities within the group are treated as a unit
23
-
- For ungrouped activities, each activity is a unit of itself
22
+
- For grouped activities (such as part groupings or livestream sessions), all activities within the group are treated as a unit
23
+
- For ungrouped activities, each activity is a unit on its own
24
24
25
-
Units are sorted using logical timestamp on insertion. If the unit is already in the chat history, they will be removed before re-inserting.
25
+
Units are sorted using their logical timestamp on insertion. If the unit is already in the chat history, they will be removed before being re-inserted.
0 commit comments