Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix(downloads): sort finished and failed downloads by recency (fixes #96)
IGECTe996b03858f9
diff --git a/src/routes/downloads/+page.svelte b/src/routes/downloads/+page.svelteindex d70d0595..c8184516 100644--- a/src/routes/downloads/+page.svelte+++ b/src/routes/downloads/+page.svelte@@ -165,6 +165,14 @@else if (d.status === "complete") completed.push(d);}}++ const byRecency = (a: GenericDownloadItem, b: GenericDownloadItem) =>+ (b.lastUpdateAt || b.startedAt || b.id) - (a.lastUpdateAt || a.startedAt || a.id);++ finished.sort(byRecency);+ completed.sort(byRecency);+ errored.sort(byRecency);+return { active, paused, queued, finished, errored, completed };});