()
| 818 | } |
| 819 | |
| 820 | function sortCurrentPushByRelevance() { |
| 821 | if (!state.push || !Array.isArray(state.push.papers) || !state.push.papers.length) return; |
| 822 | const sorted = [...state.push.papers].sort((a, b) => relevanceSortValue(b) - relevanceSortValue(a)); |
| 823 | state.push = { |
| 824 | ...state.push, |
| 825 | papers: sorted, |
| 826 | }; |
| 827 | renderPush(state.push, { preserveSelection: true }); |
| 828 | setStatus("已按相关性排序"); |
| 829 | } |
| 830 | |
| 831 | function handlePaperCheck(event) { |
| 832 | const input = event.currentTarget; |
nothing calls this directly
no test coverage detected