Commit e09809f
committed
Fix NaN from NEGATIVE_INFINITY subtraction in sortThreadsForSidebar
When two threads both yield Number.NEGATIVE_INFINITY timestamps, the
subtraction (-Infinity) - (-Infinity) produces NaN, which bypasses the
ID-based tiebreaker and causes unpredictable sort order.
Use explicit comparison (=== / >) instead of subtraction, matching the
pattern already used in sortProjectsForSidebar.1 parent 1f96d6d commit e09809f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
273 | 275 | | |
274 | | - | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| |||
0 commit comments