diff --git a/src/main/resources/static/js/comment-cards.js b/src/main/resources/static/js/comment-cards.js index fbaeb8a..37b1dc6 100644 --- a/src/main/resources/static/js/comment-cards.js +++ b/src/main/resources/static/js/comment-cards.js @@ -229,8 +229,10 @@ if (!all || !all.length) { box.style.display = 'none'; box.innerHTML = ''; return; } const weighted = !!($('ccWeighted') && $('ccWeighted').checked); + const tlSort = ($('ccTlSort') && $('ccTlSort').value) || 'count'; const stats = computeStats(all); - const tl = computeTimeline(all); + let tl = computeTimeline(all); // 언급 많은 순 top-N 선별 + if (tlSort === 'time') tl = tl.slice().sort((a, b) => a.sec - b.sec); // 선별본을 시간순 재정렬 const words = computeWords(all, weighted); const vid = window.__videoId; @@ -247,7 +249,11 @@ + ''; // 타임라인 - html += '