From 1ec184048cceba8512c863da1e843068135762a5 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 23 Feb 2022 01:24:15 -0500 Subject: [PATCH] Fix chapter sorting --- src/js-components/previewBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 8a1699b1..0fda4340 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -581,7 +581,7 @@ class PreviewBar { } else if (a.actionType !== ActionType.Chapter && b.actionType === ActionType.Chapter) { return 1; } else { - return (a.segment[0] - b.segment[1]); + return (b.segment[0] - a.segment[0]); } })[0];