diff --git a/rootfs/html/fancyindex/footer.html b/rootfs/html/fancyindex/footer.html
index 9944ab719..cae208f1a 100644
--- a/rootfs/html/fancyindex/footer.html
+++ b/rootfs/html/fancyindex/footer.html
@@ -25,6 +25,16 @@
tableDiv.id = "tableDiv";
tableDiv.appendChild(document.querySelector("table"));
document.getElementById("search").after(tableDiv);
+
+ var headers = document.querySelectorAll("th");
+ headers.forEach((header) => {
+ var links = header.querySelectorAll("a");
+ var ascendingLink = document.createElement("a");
+ ascendingLink.textContent = " ↑ ";
+ ascendingLink.href = links[0].href;
+ links[0].removeAttribute("href");
+ links[1].after(ascendingLink);
+ });