MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / sortCurrentPushByRelevance

Function sortCurrentPushByRelevance

deployments/desktop/static/app.js:820–829  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

818}
819
820function 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
831function handlePaperCheck(event) {
832 const input = event.currentTarget;

Callers

nothing calls this directly

Calls 3

relevanceSortValueFunction · 0.85
renderPushFunction · 0.70
setStatusFunction · 0.70

Tested by

no test coverage detected